Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 7312943

Browse files
authored
Merge pull request #61 from jetstack/error-switch-case-return
Add return to Error switch case
2 parents 5e2b66a + fe5f984 commit 7312943

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/proxy/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ func (p *Proxy) Error(rw http.ResponseWriter, r *http.Request, err error) {
181181
case errNoName:
182182
klog.V(2).Infof("no name available in oidc info %s", r.RemoteAddr)
183183
http.Error(rw, "Username claim not available in OIDC Issuer response", http.StatusForbidden)
184+
return
184185

185186
// server or unknown error
186187
default:

0 commit comments

Comments
 (0)