diff --git a/lib/errs/error.go b/lib/errs/error.go index 589e8ee..8857194 100644 --- a/lib/errs/error.go +++ b/lib/errs/error.go @@ -50,10 +50,7 @@ func (e *Error) WithErr(err error) *Error { } func (e *Error) Unwrap() error { - if e.err != nil { - return e.err - } - return e + return e.err } func (e *Error) WithMsg(msg string, args ...any) *Error {