diff options
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/models/error.go b/models/error.go index 410a5a7e..63e06f6e 100644 --- a/models/error.go +++ b/models/error.go @@ -505,19 +505,6 @@ func (err ErrAttachmentNotExist) Error() string { // |_______ \____/\___ /|__|___| / /_______ /\____/|____/ |__| \___ >___ > // \/ /_____/ \/ \/ \/ \/ -type ErrLoginSourceNotExist struct { - ID int64 -} - -func IsErrLoginSourceNotExist(err error) bool { - _, ok := err.(ErrLoginSourceNotExist) - return ok -} - -func (err ErrLoginSourceNotExist) Error() string { - return fmt.Sprintf("login source does not exist [id: %d]", err.ID) -} - type ErrLoginSourceAlreadyExist struct { Name string } |