From 652ab85ba00563607bfce611c104589c6187cafd Mon Sep 17 00:00:00 2001 From: Pavlo Golub Date: Wed, 22 May 2024 11:23:47 +0200 Subject: [PATCH] [-] remove tautological condition: `nil == nil` --- internal/pgengine/access.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pgengine/access.go b/internal/pgengine/access.go index 9cf4380..b26b808 100644 --- a/internal/pgengine/access.go +++ b/internal/pgengine/access.go @@ -19,7 +19,7 @@ func (pge *PgEngine) DeleteChain(ctx context.Context, chainID int) bool { pge.l.WithError(err).Error("Failed to delete self destructive chain") return false } - return err == nil && res.RowsAffected() == 1 + return res.RowsAffected() == 1 } // IsAlive returns true if the connection to the database is alive