From b212310ec4f1415b21696caeb6a7ee762888dd67 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 17 Oct 2019 08:20:20 -0400 Subject: [PATCH] Clean up unused else statement --- main.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.go b/main.go index 702683d..93624e9 100644 --- a/main.go +++ b/main.go @@ -571,16 +571,12 @@ func handleMessage(api keybase.ChatAPI) { } } if api.Msg.Channel.MembersType == channel.MembersType && cleanChannelName(api.Msg.Channel.Name) == channel.Name { - if channel.MembersType == keybase.TEAM && channel.TopicName != api.Msg.Channel.TopicName { - // Do nothing, wrong channel - } else { - + if channel.MembersType == keybase.TEAM && channel.TopicName == api.Msg.Channel.TopicName { printToView("Chat", formatOutput(api)) chat := k.NewChat(channel) lastMessage.ID = api.Msg.ID chat.Read(api.Msg.ID) } - } } else { if api.Msg.Channel.MembersType == keybase.TEAM {