From b94615f5ac172d4db46a3a9a157612bccca6e8eb Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 9 Sep 2020 19:43:03 -0400 Subject: [PATCH] Fix debug log in stash deletion command --- ui/stash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/stash.go b/ui/stash.go index 6e379bd..8cbc5ca 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -833,7 +833,7 @@ func deleteStashedItem(cc *charm.Client, id int) tea.Cmd { return func() tea.Msg { err := cc.DeleteMarkdown(id) if err != nil { - if err == nil { + if debug { log.Println("could not delete stashed item:", err) } return errMsg{err}