-
Notifications
You must be signed in to change notification settings - Fork 625
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
make getChannelIdTeam behave like GetChannelId for groups #873
Conversation
I believe this would be better factored out into some helper function, but I'm not really sure where to put it. I came across the discrepancy while testing 42wim/matterircd#255. |
OK, so it looks like I've a choice: fail lint ("should use |
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.
Hi, thanks for the PR!
Yes, this is a tricky one with the linter, i'd like to keep go1.11 compatibility for now, could you add a // nolint:gocritic
after all of the Replace
lines, so the linter will ignore this. Sorry for the red tape :)
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.
Found some fixes!
P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).
OK, that looks like it passes CI for you. I even made you a nice refactor. |
Github believes there are changes requested, but I changed the lines in question and resolved the rquest. Am I missing something, or is Github? |
Sorry for the delay! |
#873) GetChannelId will support names generated from query groups when a team is not set, but not when a team is set since it falls through to getChannelIdTeam which has a different inner loop. i This pull makes the two implementations do the same thing.
42wim#873) GetChannelId will support names generated from query groups when a team is not set, but not when a team is set since it falls through to getChannelIdTeam which has a different inner loop. i This pull makes the two implementations do the same thing.
GetChannelId
will support names generated from query groups when a team is not set, but not when a team is set since it falls through togetChannelIdTeam
which has a different inner loop. This pull makes the two implementations do the same thing.