Skip to content
Snippets Groups Projects
Commit 178dbcda authored by Reviath's avatar Reviath
Browse files

Deleted unnecessary break statements.

parent ac8d4173
No related branches found
No related tags found
No related merge requests found
......@@ -20,14 +20,10 @@ func HelpCommand(context CommandHandler.Context, args []string, commands []*Comm
return true
}
break
case CommandHandler.CommandTypeGuild:
if chn == discordgo.ChannelTypeGuildText {
return true
}
break
}
return false
......@@ -55,11 +51,9 @@ func HelpCommand(context CommandHandler.Context, args []string, commands []*Comm
switch command.Type {
case CommandHandler.CommandTypePrivate:
typestring = "Private"
break
case CommandHandler.CommandTypeGuild:
typestring = "Guild-only"
break
}
prefixesBuilder := strings.Builder{}
......@@ -123,7 +117,7 @@ func HelpCommand(context CommandHandler.Context, args []string, commands []*Comm
}
if commandsSorted[i] == nil {
return fmt.Errorf("Sort failure")
return fmt.Errorf("sort failure")
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment