From 2e3e4f72ba7fe66669106b089cce51569ba6d1d3 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 7 Apr 2021 22:16:18 -0400 Subject: [PATCH] fix inverted error check in deleteCorrespondents --- irc/mysql/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/mysql/history.go b/irc/mysql/history.go index c744af1f..0e24cf36 100644 --- a/irc/mysql/history.go +++ b/irc/mysql/history.go @@ -395,7 +395,7 @@ func (mysql *MySQL) deleteCorrespondents(ctx context.Context, threshold int64) { mysql.logError("error deleting correspondents", err) } else { count, err := result.RowsAffected() - if err != nil { + if !mysql.logError("error deleting correspondents", err) { mysql.logger.Debug(fmt.Sprintf("deleted %d correspondents entries", count)) } }