Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
  • Loading branch information
albers and ccoVeille authored Jan 21, 2025
1 parent 33e3ac1 commit b4f26ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completions.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,11 @@ func (c *Command) getCompletions(args []string) (*Command, []string, ShellCompDi
return finalCmd, completions, directive, nil
}
} else {
directive = ShellCompDirectiveDefault

Check failure on line 458 in completions.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not properly formatted (gofmt)
customShellCompDirective := finalCmd.CompletionOptions.DefaultShellCompDirective
if customShellCompDirective != ShellCompDirectiveDefault {
directive = customShellCompDirective
} else {
directive = ShellCompDirectiveDefault
}

if flag == nil {
Expand Down

0 comments on commit b4f26ae

Please sign in to comment.