diff --git a/server.go b/server.go
index c9efd15b638ac029a3e27dd369d5fb9f414953ca..40a07dc1419d3c551bd38af5d1c2af0958e71d58 100644
--- a/server.go
+++ b/server.go
@@ -391,6 +391,7 @@ type listenerConfig struct {
 	letsEncryptCacheDir string   // the path to cache letsencrypt certificates
 }
 
+// ErrHostNotConfigured indicates the hostname was not configured
 var ErrHostNotConfigured = errors.New("acme/autocert: host not configured")
 
 // createHTTPListener is responsible for creating a listening socket
@@ -611,9 +612,9 @@ func (r *oauthProxy) newOpenIDClient() (*oidc.Client, oidc.ProviderConfig, *http
 						return nil, nil
 					}
 					return idpProxyURL, nil
-				} else {
-					return nil, nil
 				}
+
+				return nil, nil
 			},
 			TLSClientConfig: &tls.Config{
 				InsecureSkipVerify: r.config.SkipOpenIDProviderTLSVerify,