diff options
Diffstat (limited to 'internal/db/email_addresses.go')
-rw-r--r-- | internal/db/email_addresses.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/db/email_addresses.go b/internal/db/email_addresses.go index 8cef705e..4f30a898 100644 --- a/internal/db/email_addresses.go +++ b/internal/db/email_addresses.go @@ -45,6 +45,8 @@ type ErrEmailNotExist struct { args errutil.Args } +// IsErrEmailAddressNotExist returns true if the underlying error has the type +// ErrEmailNotExist. func IsErrEmailAddressNotExist(err error) bool { _, ok := errors.Cause(err).(ErrEmailNotExist) return ok |