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