appease linter

This commit is contained in:
David Buckley
2019-08-21 08:25:59 +01:00
parent 37c9d82eca
commit 24abf74bce

View File

@@ -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