Fix staticcheck in cluster & k8s.io/{apimachinery,apiserver}

Kubernetes-commit: c5d70e9db1e8f36e5eb6dae6ca72ad62c1c837d9
This commit is contained in:
tiloso 2021-06-05 22:15:15 +02:00 committed by Kubernetes Publisher
parent d417eb9aad
commit c94ba7a71a
2 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ func decorateResponseWriter(ctx context.Context, responseWriter http.ResponseWri
// check if the ResponseWriter we're wrapping is the fancy one we need
// or if the basic is sufficient
//lint:file-ignore SA1019 Keep supporting deprecated http.CloseNotifier
_, cn := responseWriter.(http.CloseNotifier)
_, fl := responseWriter.(http.Flusher)
_, hj := responseWriter.(http.Hijacker)

View File

@ -469,6 +469,7 @@ func InstrumentRouteFunc(verb, group, version, resource, subresource, scope, com
delegate := &ResponseWriterDelegator{ResponseWriter: response.ResponseWriter}
//lint:file-ignore SA1019 Keep supporting deprecated http.CloseNotifier
_, cn := response.ResponseWriter.(http.CloseNotifier)
_, fl := response.ResponseWriter.(http.Flusher)
_, hj := response.ResponseWriter.(http.Hijacker)