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 801a91f8..08548c7d 100644 --- a/models/error.go +++ b/models/error.go @@ -93,19 +93,6 @@ func (err ErrUserHasOrgs) Error() string { return fmt.Sprintf("user still has membership of organizations [uid: %d]", err.UID) } -type ErrReachLimitOfRepo struct { - Limit int -} - -func IsErrReachLimitOfRepo(err error) bool { - _, ok := err.(ErrReachLimitOfRepo) - return ok -} - -func (err ErrReachLimitOfRepo) Error() string { - return fmt.Sprintf("user has reached maximum limit of repositories [limit: %d]", err.Limit) -} - // __ __.__ __ .__ // / \ / \__| | _|__| // \ \/\/ / | |/ / | |