mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-13 08:32:47 +00:00
12 lines
178 B
Go
12 lines
178 B
Go
package vo
|
|
|
|
import "github.com/go-errors/errors"
|
|
|
|
func unwrapError(err error) error {
|
|
unwrapped := errors.Unwrap(err)
|
|
if unwrapped == nil {
|
|
return err
|
|
}
|
|
return unwrapped
|
|
}
|