Skip to content

Commit 4ad9095

Browse files
authored
[-] remove tautological condition: nil == nil (#652)
1 parent 1ed6048 commit 4ad9095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pgengine/access.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (pge *PgEngine) DeleteChain(ctx context.Context, chainID int) bool {
1919
pge.l.WithError(err).Error("Failed to delete self destructive chain")
2020
return false
2121
}
22-
return err == nil && res.RowsAffected() == 1
22+
return res.RowsAffected() == 1
2323
}
2424

2525
// IsAlive returns true if the connection to the database is alive

0 commit comments

Comments
 (0)