aboutsummaryrefslogtreecommitdiff
path: root/internal/db/errors
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/errors')
-rw-r--r--internal/db/errors/login_source.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/internal/db/errors/login_source.go b/internal/db/errors/login_source.go
index 876a0820..db0cd1f9 100644
--- a/internal/db/errors/login_source.go
+++ b/internal/db/errors/login_source.go
@@ -6,19 +6,6 @@ package errors
import "fmt"
-type LoginSourceNotExist struct {
- ID int64
-}
-
-func IsLoginSourceNotExist(err error) bool {
- _, ok := err.(LoginSourceNotExist)
- return ok
-}
-
-func (err LoginSourceNotExist) Error() string {
- return fmt.Sprintf("login source does not exist [id: %d]", err.ID)
-}
-
type LoginSourceNotActivated struct {
SourceID int64
}
@@ -44,4 +31,3 @@ func IsInvalidLoginSourceType(err error) bool {
func (err InvalidLoginSourceType) Error() string {
return fmt.Sprintf("invalid login source type [type: %v]", err.Type)
}
-