diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-04-11 21:57:13 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-04-18 10:10:30 +0200 |
commit | 82a3d33ce3e089bc103ec09b33b3ed7f47ac1381 (patch) | |
tree | 368db22e05cc8d25a49c6493f3c6e8e023742a00 /pkg/gui/controllers/helpers/confirmation_helper.go | |
parent | 325800a72e166d6c43ecb78247ae6e05ad9624ca (diff) |
Remove calls to Error()
Now that we have an error handler set, we can simply let them bubble up all the
way to gocui.
Diffstat (limited to 'pkg/gui/controllers/helpers/confirmation_helper.go')
-rw-r--r-- | pkg/gui/controllers/helpers/confirmation_helper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/controllers/helpers/confirmation_helper.go b/pkg/gui/controllers/helpers/confirmation_helper.go index 6cf5a1e90..8c1265c15 100644 --- a/pkg/gui/controllers/helpers/confirmation_helper.go +++ b/pkg/gui/controllers/helpers/confirmation_helper.go @@ -36,7 +36,7 @@ func (self *ConfirmationHelper) wrappedConfirmationFunction(cancel goContext.Can if function != nil { if err := function(); err != nil { - return self.c.Error(err) + return err } } |