diff options
Diffstat (limited to 'matterclient/channels.go')
-rw-r--r-- | matterclient/channels.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/matterclient/channels.go b/matterclient/channels.go index 568a20eb..0eac29f8 100644 --- a/matterclient/channels.go +++ b/matterclient/channels.go @@ -51,10 +51,8 @@ func (m *MMClient) GetChannelId(name string, teamId string) string { //nolint:go if res == name { return channel.Id } - } else { - if channel.Name == name { - return channel.Id - } + } else if channel.Name == name { + return channel.Id } } } |