aboutsummaryrefslogtreecommitdiff
path: root/internal/db/errors/user_mail.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2023-05-14 20:15:47 -0400
committerGitHub <noreply@github.com>2023-05-14 20:15:47 -0400
commit0721ef2399c7c0e7f01ee96530b99f883434c623 (patch)
tree8ddb3e5002ab0b7402a6339c7781d91caebd96e7 /internal/db/errors/user_mail.go
parent9ac93067f640ca228ff218de1686ff61e8747d05 (diff)
refactor(db): migrate off `user_email.go` to `users.go` (#7452)
Diffstat (limited to 'internal/db/errors/user_mail.go')
-rw-r--r--internal/db/errors/user_mail.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/internal/db/errors/user_mail.go b/internal/db/errors/user_mail.go
deleted file mode 100644
index fcdeb78c..00000000
--- a/internal/db/errors/user_mail.go
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2017 The Gogs Authors. All rights reserved.
-// Use of this source code is governed by a MIT-style
-// license that can be found in the LICENSE file.
-
-package errors
-
-import "fmt"
-
-type EmailNotFound struct {
- Email string
-}
-
-func IsEmailNotFound(err error) bool {
- _, ok := err.(EmailNotFound)
- return ok
-}
-
-func (err EmailNotFound) Error() string {
- return fmt.Sprintf("email is not found [email: %s]", err.Email)
-}
-
-type EmailNotVerified struct {
- Email string
-}
-
-func IsEmailNotVerified(err error) bool {
- _, ok := err.(EmailNotVerified)
- return ok
-}
-
-func (err EmailNotVerified) Error() string {
- return fmt.Sprintf("email has not been verified [email: %s]", err.Email)
-}