Skip to content

Commit

Permalink
Fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Dec 1, 2024
1 parent 6e44691 commit 22cae16
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/storage/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,15 @@ func DeleteSearch(search, timezone string) error {
}
}

err = tx.Commit()
if err := tx.Commit(); err != nil {
return err
}

if err := pruneUnusedTags(); err != nil {
return err
}

if err == nil {
logger.Log().Debugf("[db] deleted %d messages matching %s", total, search)
}
logger.Log().Debugf("[db] deleted %d messages matching %s", total, search)

dbLastAction = time.Now()

Expand Down

0 comments on commit 22cae16

Please sign in to comment.