server/streaming: specify the linter
Instead of ignoring all linters, spefify which one we are ignoring.
Note that machine-readable comments (such as nolint) should have no
space after "//" (although it's not currently enforced).
@@ -345,7 +345,7 @@ func (s *server) servePortForward(req *restful.Request, resp *restful.Response)
portForwardOptions, err := portforward.BuildV4Options(pf.Port)
if err != nil {
- resp.WriteError(http.StatusBadRequest, err) // nolint
+ resp.WriteError(http.StatusBadRequest, err) //nolint:errcheck
return
}
