We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dafe244 commit 5139baaCopy full SHA for 5139baa
errors.go
@@ -26,7 +26,7 @@ func ReplaceErrNoRows(err, replacement error) error {
26
// IsOtherThanErrNoRows returns true if the passed error is not nil
27
// and does not unwrap to, or is sql.ErrNoRows.
28
func IsOtherThanErrNoRows(err error) bool {
29
- return err != nil && errors.Is(err, sql.ErrNoRows)
+ return err != nil && !errors.Is(err, sql.ErrNoRows)
30
}
31
32
// sentinelError implements the error interface for a string
0 commit comments