Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-22 01:44:24 +01:00

Don't use extra assignment

This commit is contained in:
patdyn 2024-10-01 12:12:59 +02:00
parent e2f0bcef18
commit e8d43b40b1

View file

@ -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)
}