Skip to content
Snippets Groups Projects
Unverified Commit 87f0b9cd authored by Rohith Jayawardene's avatar Rohith Jayawardene Committed by GitHub
Browse files

Vetting / Lintting Errors (#289)

- fixing up the linting / vetting issues
parent 51704e79
No related branches found
No related tags found
No related merge requests found
...@@ -391,6 +391,7 @@ type listenerConfig struct { ...@@ -391,6 +391,7 @@ type listenerConfig struct {
letsEncryptCacheDir string // the path to cache letsencrypt certificates letsEncryptCacheDir string // the path to cache letsencrypt certificates
} }
// ErrHostNotConfigured indicates the hostname was not configured
var ErrHostNotConfigured = errors.New("acme/autocert: host not configured") var ErrHostNotConfigured = errors.New("acme/autocert: host not configured")
// createHTTPListener is responsible for creating a listening socket // createHTTPListener is responsible for creating a listening socket
...@@ -611,9 +612,9 @@ func (r *oauthProxy) newOpenIDClient() (*oidc.Client, oidc.ProviderConfig, *http ...@@ -611,9 +612,9 @@ func (r *oauthProxy) newOpenIDClient() (*oidc.Client, oidc.ProviderConfig, *http
return nil, nil return nil, nil
} }
return idpProxyURL, nil return idpProxyURL, nil
} else {
return nil, nil
} }
return nil, nil
}, },
TLSClientConfig: &tls.Config{ TLSClientConfig: &tls.Config{
InsecureSkipVerify: r.config.SkipOpenIDProviderTLSVerify, InsecureSkipVerify: r.config.SkipOpenIDProviderTLSVerify,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment