Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
fix lint erros
Browse files Browse the repository at this point in the history
  • Loading branch information
profclems committed Dec 21, 2020
1 parent 0b5ceb9 commit 53f095c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions commands/help/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ func RootHelpFunc(command *cobra.Command, args []string) {
}
helpEntries = append(helpEntries, helpEntry{"USAGE", command.UseLine()})
if len(command.Aliases) > 0 {
var aliases []string
for _, alias := range command.Aliases {
aliases = append(aliases, alias)
}
helpEntries = append(helpEntries, helpEntry{"ALIASES", dedent(strings.Join(aliases, ", "))})
helpEntries = append(helpEntries, helpEntry{"ALIASES", dedent(strings.Join(command.Aliases, ", "))})
}
if len(coreCommands) > 0 {
helpEntries = append(helpEntries, helpEntry{"CORE COMMANDS", strings.Join(coreCommands, "\n")})
Expand Down

0 comments on commit 53f095c

Please sign in to comment.