From e2f0bcef184c93ba0afd938bb6ae2fc184fe4b1b Mon Sep 17 00:00:00 2001 From: patdyn Date: Tue, 1 Oct 2024 12:12:20 +0200 Subject: [PATCH] Init var --- models/user/email_address.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/user/email_address.go b/models/user/email_address.go index 55a8ac7b32..bd2a5a9638 100644 --- a/models/user/email_address.go +++ b/models/user/email_address.go @@ -511,7 +511,7 @@ func IsEmailDomainAllowedInternal( isFederation bool, fqdn string, ) bool { - result := false + var result bool if len(emailDomainAllowList) == 0 { result = !validation.IsEmailDomainListed(emailDomainBlockList, email)