refactor(main): ignore error while retrieving channels from cabinet
This commit is contained in:
parent
dde8032437
commit
f56217e298
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue