You've already forked oauth2-proxy
mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2025-08-10 22:51:31 +02:00
remove unnecessary if conditional
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user