From 24abf74bce452c0583fc67f2828a2a3c71a55093 Mon Sep 17 00:00:00 2001 From: David Buckley Date: Wed, 21 Aug 2019 08:25:59 +0100 Subject: [PATCH] appease linter --- matterclient/channels.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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