Skip to content

Commit 5139baa

Browse files
authored
not err no rows (#5)
1 parent dafe244 commit 5139baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func ReplaceErrNoRows(err, replacement error) error {
2626
// IsOtherThanErrNoRows returns true if the passed error is not nil
2727
// and does not unwrap to, or is sql.ErrNoRows.
2828
func IsOtherThanErrNoRows(err error) bool {
29-
return err != nil && errors.Is(err, sql.ErrNoRows)
29+
return err != nil && !errors.Is(err, sql.ErrNoRows)
3030
}
3131

3232
// sentinelError implements the error interface for a string

0 commit comments

Comments
 (0)