1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2024-11-24 08:52:25 +02:00

remove unnecessary if conditional

This commit is contained in:
Kamal Nasser 2019-11-14 17:17:12 +02:00
parent 1af7c208ee
commit 898b6b81c9

View File

@ -545,7 +545,7 @@ func (p *OAuthProxy) IsValidRedirect(redirect string) bool {
for _, domain := range p.whitelistDomains {
domainHostname, domainPort := splitHostPort(strings.TrimLeft(domain, "."))
if err != nil || domainHostname == "" {
if domainHostname == "" {
continue
}