-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DeleteGroups function to Client #1095
Conversation
ErrorCode: 1, | ||
}, | ||
{ | ||
GroupID: "group2", | ||
ErrorCode: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ErrorCode 1 is a failure, could you write a test case that succeeds as well
deletegroups.go
Outdated
if t.ErrorCode == 0 { | ||
ret.Errors[t.GroupID] = nil | ||
} else { | ||
ret.Errors[t.GroupID] = Error(t.ErrorCode) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the makeError
function instead of Error
(see other examples for usage)
also don't need the if/else statement as makeError
takes care of that too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the review, I've made the changes.
Thanks @bgranvea ! |
Implement DeleteGroups protocol and add it to Client.