mirror of
https://github.com/pgsty/minio.git
synced 2026-07-25 23:16:16 +03:00
enable full linter across the codebase (#9620)
enable linter using golangci-lint across codebase to run a bunch of linters together, we shall enable new linters as we fix more things the codebase. This PR fixes the first stage of this cleanup.
This commit is contained in:
@@ -48,6 +48,8 @@ func registerMetricsRouter(router *mux.Router) {
|
||||
switch prometheusAuthType(authType) {
|
||||
case prometheusPublic:
|
||||
metricsRouter.Handle(prometheusMetricsPath, metricsHandler())
|
||||
case prometheusJWT:
|
||||
fallthrough
|
||||
default:
|
||||
metricsRouter.Handle(prometheusMetricsPath, AuthMiddleware(metricsHandler()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user