refactor(cmd): rename loop var
This commit is contained in:
parent
18eb50fa2c
commit
a4c8787f1d
1 changed files with 4 additions and 4 deletions
|
|
@ -149,11 +149,11 @@ func (gt *guildsTree) createChannelNodes(node *tview.TreeNode, channels []discor
|
|||
}
|
||||
|
||||
PARENT_CHANNELS:
|
||||
for _, c := range channels {
|
||||
if c.Type == discord.GuildCategory {
|
||||
for _, channel := range channels {
|
||||
if channel.Type == discord.GuildCategory {
|
||||
for _, nested := range channels {
|
||||
if nested.ParentID == c.ID {
|
||||
gt.createChannelNode(node, c)
|
||||
if nested.ParentID == channel.ID {
|
||||
gt.createChannelNode(node, channel)
|
||||
continue PARENT_CHANNELS
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue