Explorar o código

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

rigormorrtiss %!s(int64=4) %!d(string=hai) anos
pai
achega
f56217e298
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      discordo.go

+ 1 - 5
discordo.go

@@ -204,11 +204,7 @@ func onChannelsTreeViewSelected(node *tview.TreeNode) {
 	switch currentChannel.Type {
 	switch currentChannel.Type {
 	case discord.GuildCategory:
 	case discord.GuildCategory:
 		if len(node.GetChildren()) == 0 {
 		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 {
 			sort.SliceStable(channels, func(i, j int) bool {
 				return channels[i].Position < channels[j].Position
 				return channels[i].Position < channels[j].Position
 			})
 			})