Skip to content

Commit

Permalink
refactor: use WithBoolean on multiselect printer
Browse files Browse the repository at this point in the history
Signed-off-by: alireza <alirezaarzehgar82@gmail.com>
  • Loading branch information
alirezaarzehgar committed Jul 1, 2023
1 parent f6e97db commit 32b4156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interactive_multiselect_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ func (p InteractiveMultiselectPrinter) WithMaxHeight(maxHeight int) *Interactive
}

// WithFilter sets the Filter option
func (p InteractiveMultiselectPrinter) WithFilter(filter bool) *InteractiveMultiselectPrinter {
p.Filter = filter
func (p InteractiveMultiselectPrinter) WithFilter(b ...bool) *InteractiveMultiselectPrinter {
p.Filter = internal.WithBoolean(b)

Check warning on line 89 in interactive_multiselect_printer.go

View check run for this annotation

Codecov / codecov/patch

interactive_multiselect_printer.go#L88-L89

Added lines #L88 - L89 were not covered by tests
return &p
}

Expand Down

0 comments on commit 32b4156

Please sign in to comment.