瀏覽代碼

refactor(main): ignore error while retrieving channels from cabinet

rigormorrtiss 4 年之前
父節點
當前提交
f56217e298
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      discordo.go

+ 1 - 5
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
 			})