From e8d43b40b1913125297731f2a1157c3512236ad0 Mon Sep 17 00:00:00 2001 From: patdyn Date: Tue, 1 Oct 2024 12:12:59 +0200 Subject: [PATCH] Don't use extra assignment --- models/user/email_address.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/user/email_address.go b/models/user/email_address.go index bd2a5a9638..ac8fa643c4 100644 --- a/models/user/email_address.go +++ b/models/user/email_address.go @@ -524,8 +524,8 @@ func IsEmailDomainAllowedInternal( if err != nil { return false } - federatedAllowlist := append(emailDomainAllowList, globber) - result = validation.IsEmailDomainListed(federatedAllowlist, email) + emailDomainAllowList = append(emailDomainAllowList, globber) + result = validation.IsEmailDomainListed(emailDomainAllowList, email) } else { result = validation.IsEmailDomainListed(emailDomainAllowList, email) }