mirror of
https://github.com/grafana/grafana.git
synced 2025-09-27 20:43:47 +08:00
Codestyle: Fix some goconst issues (#17530)
Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
This commit is contained in:

committed by
Carl Bergquist

parent
39e23ba672
commit
ab4e1526b3
@ -258,7 +258,7 @@ func (hs *HTTPServer) metricsEndpoint(ctx *macaron.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if ctx.Req.Method != "GET" || ctx.Req.URL.Path != "/metrics" {
|
||||
if ctx.Req.Method != http.MethodGet || ctx.Req.URL.Path != "/metrics" {
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user