Skip to content

Commit

Permalink
[-] remove tautological condition: nil == nil
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed May 22, 2024
1 parent 1ed6048 commit 652ab85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pgengine/access.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 652ab85

Please sign in to comment.