1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 13:17:23 +00:00

Clean up unused else statement

This commit is contained in:
Gregory Rudolph
2019-10-17 08:20:20 -04:00
parent 9fbf0c52f2
commit b212310ec4

View File

@ -571,16 +571,12 @@ func handleMessage(api keybase.ChatAPI) {
} }
} }
if api.Msg.Channel.MembersType == channel.MembersType && cleanChannelName(api.Msg.Channel.Name) == channel.Name { 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 { if channel.MembersType == keybase.TEAM && channel.TopicName == api.Msg.Channel.TopicName {
// Do nothing, wrong channel
} else {
printToView("Chat", formatOutput(api)) printToView("Chat", formatOutput(api))
chat := k.NewChat(channel) chat := k.NewChat(channel)
lastMessage.ID = api.Msg.ID lastMessage.ID = api.Msg.ID
chat.Read(api.Msg.ID) chat.Read(api.Msg.ID)
} }
} }
} else { } else {
if api.Msg.Channel.MembersType == keybase.TEAM { if api.Msg.Channel.MembersType == keybase.TEAM {