aboutsummaryrefslogtreecommitdiff
path: root/internal/db/user_mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/user_mail.go')
-rw-r--r--internal/db/user_mail.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/db/user_mail.go b/internal/db/user_mail.go
index 990b4aa1..fc6e1618 100644
--- a/internal/db/user_mail.go
+++ b/internal/db/user_mail.go
@@ -57,7 +57,7 @@ func GetEmailAddresses(uid int64) ([]*EmailAddress, error) {
}
func isEmailUsed(e Engine, email string) (bool, error) {
- if len(email) == 0 {
+ if email == "" {
return true, nil
}