remove unnecessary if conditional
This commit is contained in:
parent
1af7c208ee
commit
898b6b81c9
|
|
@ -545,7 +545,7 @@ func (p *OAuthProxy) IsValidRedirect(redirect string) bool {
|
||||||
|
|
||||||
for _, domain := range p.whitelistDomains {
|
for _, domain := range p.whitelistDomains {
|
||||||
domainHostname, domainPort := splitHostPort(strings.TrimLeft(domain, "."))
|
domainHostname, domainPort := splitHostPort(strings.TrimLeft(domain, "."))
|
||||||
if err != nil || domainHostname == "" {
|
if domainHostname == "" {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue