Skip to content

Commit

Permalink
refactor: remove unused errors (#1093)
Browse files Browse the repository at this point in the history
as per title

Co-authored-by: joel@joellee.org <joel@joellee.org>
  • Loading branch information
J0 and joel@joellee.org authored May 2, 2023
1 parent 0f8548f commit 8ff1661
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions internal/models/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ func IsNotFoundError(err error) bool {
return true
case RefreshTokenNotFoundError, *RefreshTokenNotFoundError:
return true
case InstanceNotFoundError, *InstanceNotFoundError:
return true
case TotpSecretNotFoundError, *TotpSecretNotFoundError:
return true
case IdentityNotFoundError, *IdentityNotFoundError:
return true
case ChallengeNotFoundError, *ChallengeNotFoundError:
Expand Down Expand Up @@ -65,13 +61,6 @@ func (e RefreshTokenNotFoundError) Error() string {
return "Refresh Token not found"
}

// InstanceNotFoundError represents when an instance is not found.
type InstanceNotFoundError struct{}

func (e InstanceNotFoundError) Error() string {
return "Instance not found"
}

// FactorNotFoundError represents when a user is not found.
type FactorNotFoundError struct{}

Expand All @@ -86,12 +75,6 @@ func (e ChallengeNotFoundError) Error() string {
return "Challenge not found"
}

type TotpSecretNotFoundError struct{}

func (e TotpSecretNotFoundError) Error() string {
return "Totp Secret not found"
}

// SSOProviderNotFoundError represents an error when a SSO Provider can't be
// found.
type SSOProviderNotFoundError struct{}
Expand Down

0 comments on commit 8ff1661

Please sign in to comment.