fix staticcheck faulures in 'cmd' pkg

This commit is contained in:
carlory
2019-08-26 15:12:07 +08:00
parent e680ad7156
commit 2fe82075b4
4 changed files with 4 additions and 4 deletions

View File

@@ -597,6 +597,7 @@ func (s *ProxyServer) Run() error {
w.Header().Set("X-Content-Type-Options", "nosniff")
fmt.Fprintf(w, "%s", s.ProxyMode)
})
//lint:ignore SA1019 See the Metrics Stability Migration KEP
proxyMux.Handle("/metrics", legacyregistry.Handler())
if s.EnableProfiling {
routes.Profiling{}.Install(proxyMux)