mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-21 17:34:24 +01:00
Don't use extra assignment
This commit is contained in:
parent
e2f0bcef18
commit
e8d43b40b1
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue