appease linter
This commit is contained in:
@@ -38,8 +38,9 @@ func (m *MMClient) GetChannelHeader(channelId string) string { //nolint:golint
|
|||||||
|
|
||||||
func getNormalisedName(channel *model.Channel) string {
|
func getNormalisedName(channel *model.Channel) string {
|
||||||
if channel.Type == model.CHANNEL_GROUP {
|
if channel.Type == model.CHANNEL_GROUP {
|
||||||
res := strings.Replace(channel.DisplayName, ", ", "-", -1)
|
// (deprecated in favour of ReplaceAll in go 1.12)
|
||||||
res = strings.Replace(res, " ", "_", -1)
|
res := strings.Replace(channel.DisplayName, ", ", "-", -1) // nolint: gocritic
|
||||||
|
res = strings.Replace(res, " ", "_", -1) // nolint: gocritic
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
return channel.Name
|
return channel.Name
|
||||||
|
|||||||
Reference in New Issue
Block a user