summaryrefslogtreecommitdiffstats
path: root/gui.go
diff options
context:
space:
mode:
authorAnthony HAMON <anthony.hamon@iadvize.com>2018-08-06 07:41:29 +0200
committerAnthony HAMON <anthony.hamon@iadvize.com>2018-08-06 07:41:29 +0200
commit684e8b2e80087f1ae019ca887b16c6f9d6b73d2b (patch)
treec7efc3dcea7568fc863ec1d2de514c7797537336 /gui.go
parent7b7621c18c437368d6796302fe576e665aded722 (diff)
remove useless condition
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/gui.go b/gui.go
index 040cfdafd..98654d5a0 100644
--- a/gui.go
+++ b/gui.go
@@ -196,10 +196,8 @@ func keybindings(g *gocui.Gui) error {
if err := g.SetKeybinding("stash", 'k', gocui.ModNone, handleStashPop); err != nil {
return err
}
- if err := g.SetKeybinding("stash", 'd', gocui.ModNone, handleStashDrop); err != nil {
- return err
- }
- return nil
+
+ return g.SetKeybinding("stash", 'd', gocui.ModNone, handleStashDrop)
}
func layout(g *gocui.Gui) error {