Skip to content

Commit c219cf1

Browse files
refactor: simplify condition for including description in completions
1 parent 4181598 commit c219cf1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

commands.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,7 @@ func completeCommand(output io.Writer, ctx commandContext) error {
221221
return nil
222222
}
223223

224-
includeDescription := false
225-
if requester == "fish" {
226-
includeDescription = true
227-
}
224+
includeDescription := requester == "fish"
228225

229226
completions := NewCompleter(ctx.ownCommands.All(), DefaultFlagsLoader, includeDescription).Complete(args)
230227
if len(completions) > 0 {

0 commit comments

Comments
 (0)