Fix debug log in stash deletion command

This commit is contained in:
Christian Rocha 2020-09-09 19:43:03 -04:00 committed by Christian Muehlhaeuser
commit b94615f5ac

View file

@ -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}