Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Jun 21, 2024
1 parent fdcb8db commit 9ff6ff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdbx/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ func IsMapFull(err error) bool {

// IsErrno returns true if err's errno is the given errno.
func IsErrno(err error, errno Errno) bool {
return IsErrnoFn(err, func(err error) bool { return err == errno }) //nolint:err113
return IsErrnoFn(err, func(err error) bool { return err == errno }) //nolint
}

// IsErrnoSys returns true if err's errno is the given errno.
func IsErrnoSys(err error, errno syscall.Errno) bool {
return IsErrnoFn(err, func(err error) bool { return err == errno }) //nolint:err113
return IsErrnoFn(err, func(err error) bool { return err == errno }) //nolint
}

// IsErrnoFn calls fn on the error underlying err and returns the result. If
Expand All @@ -143,7 +143,7 @@ func IsErrnoFn(err error, fn func(error) bool) bool {
if err == nil {
return false
}
if err, ok := err.(*OpError); ok {
if err, ok := err.(*OpError); ok { //nolint
return fn(err.Errno)
}
return fn(err)
Expand Down

0 comments on commit 9ff6ff1

Please sign in to comment.