fix(errors): change Unwrap method receiver to value type (#4232)

This commit is contained in:
Orkhan Alikhanov
2025-05-11 18:38:33 +04:00
committed by GitHub
parent cf32d2dcf8
commit b38c59de7f
2 changed files with 12 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (msg *Error) IsType(flags ErrorType) bool {
}
// Unwrap returns the wrapped error, to allow interoperability with errors.Is(), errors.As() and errors.Unwrap()
func (msg *Error) Unwrap() error {
func (msg Error) Unwrap() error {
return msg.Err
}