diff --git a/matterclient/channels.go b/matterclient/channels.go index 369fece6..76349e43 100644 --- a/matterclient/channels.go +++ b/matterclient/channels.go @@ -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