diff --git a/models/user/email_address.go b/models/user/email_address.go index 01e8e330ae..55a8ac7b32 100644 --- a/models/user/email_address.go +++ b/models/user/email_address.go @@ -20,8 +20,8 @@ import ( "code.gitea.io/gitea/modules/setting" "code.gitea.io/gitea/modules/util" "code.gitea.io/gitea/modules/validation" - "github.com/gobwas/glob" + "github.com/gobwas/glob" "xorm.io/builder" ) @@ -509,8 +509,8 @@ func IsEmailDomainAllowedInternal( emailDomainAllowList []glob.Glob, emailDomainBlockList []glob.Glob, isFederation bool, - fqdn string) bool { - + fqdn string, +) bool { result := false if len(emailDomainAllowList) == 0 { diff --git a/models/user/email_address_test.go b/models/user/email_address_test.go index 7eb54f71eb..96fae98ebb 100644 --- a/models/user/email_address_test.go +++ b/models/user/email_address_test.go @@ -23,7 +23,6 @@ func TestEmailDomainAllowList(t *testing.T) { } func TestEmailDomainAllowListInternal(t *testing.T) { - domain, _ := glob.Compile("domain.de", ',') emailDomainAllowList := []glob.Glob{domain} emailDomainBlockList := []glob.Glob{}