From f56217e298d3f655e57e33f5250f6a4476a153ed Mon Sep 17 00:00:00 2001 From: rigormorrtiss Date: Tue, 3 Aug 2021 21:13:13 +0400 Subject: [PATCH] refactor(main): ignore error while retrieving channels from cabinet --- discordo.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/discordo.go b/discordo.go index fd18b30..f44d1d4 100644 --- a/discordo.go +++ b/discordo.go @@ -204,11 +204,7 @@ func onChannelsTreeViewSelected(node *tview.TreeNode) { switch currentChannel.Type { case discord.GuildCategory: if len(node.GetChildren()) == 0 { - channels, err := discordState.Cabinet.Channels(currentGuild.ID) - if err != nil { - return - } - + channels, _ := discordState.Cabinet.Channels(currentGuild.ID) sort.SliceStable(channels, func(i, j int) bool { return channels[i].Position < channels[j].Position })