Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
David Buckley committed Aug 21, 2019
1 parent 37c9d82 commit 24abf74
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions matterclient/channels.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ func (m *MMClient) GetChannelHeader(channelId string) string { //nolint:golint

func getNormalisedName(channel *model.Channel) string {
if channel.Type == model.CHANNEL_GROUP {
res := strings.Replace(channel.DisplayName, ", ", "-", -1)
res = strings.Replace(res, " ", "_", -1)
// (deprecated in favour of ReplaceAll in go 1.12)
res := strings.Replace(channel.DisplayName, ", ", "-", -1) // nolint: gocritic
res = strings.Replace(res, " ", "_", -1) // nolint: gocritic
return res
}
return channel.Name
Expand Down

0 comments on commit 24abf74

Please sign in to comment.