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:
parent
e2f0bcef18
commit
e8d43b40b1
|
@ -524,8 +524,8 @@ func IsEmailDomainAllowedInternal(
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
federatedAllowlist := append(emailDomainAllowList, globber)
|
emailDomainAllowList = append(emailDomainAllowList, globber)
|
||||||
result = validation.IsEmailDomainListed(federatedAllowlist, email)
|
result = validation.IsEmailDomainListed(emailDomainAllowList, email)
|
||||||
} else {
|
} else {
|
||||||
result = validation.IsEmailDomainListed(emailDomainAllowList, email)
|
result = validation.IsEmailDomainListed(emailDomainAllowList, email)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue