Skip to content

Commit

Permalink
fix: golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Sep 23, 2022
1 parent 4f71083 commit 9f6721a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/commands/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ func printUsage(receiver interface{}) (string, error) {

envs, ok := field.Tag.Lookup("env")
if ok {
for _, env := range strings.Split(envs, ",") {
arguments = append(arguments, fmt.Sprintf("%s", env))
}
arguments = append(arguments, strings.Split(envs, ",")...)
}

field := strings.Join(arguments, ", ")
Expand Down

0 comments on commit 9f6721a

Please sign in to comment.