diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-16 20:38:26 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-11-18 08:36:19 +1100 |
commit | 682db77401e5c44de1eeeb179afd0114bfe82f72 (patch) | |
tree | 1dbdadd56b6e893550565da86fe37cb0a40be30d /pkg/gui/filtering.go | |
parent | 6faed08d9de2841788b1eac4077862bc4ae682f1 (diff) |
fix lint errors
Diffstat (limited to 'pkg/gui/filtering.go')
-rw-r--r-- | pkg/gui/filtering.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkg/gui/filtering.go b/pkg/gui/filtering.go index 9213b611e..bf44ec0bc 100644 --- a/pkg/gui/filtering.go +++ b/pkg/gui/filtering.go @@ -3,11 +3,9 @@ package gui func (gui *Gui) validateNotInFilterMode() (bool, error) { if gui.State.Modes.Filtering.Active() { err := gui.ask(askOpts{ - title: gui.Tr.MustExitFilterModeTitle, - prompt: gui.Tr.MustExitFilterModePrompt, - handleConfirm: func() error { - return gui.exitFilterMode() - }, + title: gui.Tr.MustExitFilterModeTitle, + prompt: gui.Tr.MustExitFilterModePrompt, + handleConfirm: gui.exitFilterMode, }) return false, err |