Skip to content

Commit dcb3508

Browse files
committed
chore: enable usestdlibvars linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
1 parent d1b8ef1 commit dcb3508

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ linters:
1111
- gocritic
1212
- misspell
1313
- testifylint
14+
- usestdlibvars
1415

1516
settings:
1617
errcheck:

providers/prometheus/server_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (s *ServerInterceptorTestSuite) TestContextCancelledTreatedAsStatus() {
175175
// Order of matching label vales does not matter.
176176
func fetchPrometheusLines(t *testing.T, reg prometheus.Gatherer, metricName string, matchingLabelValues ...string) []string {
177177
resp := httptest.NewRecorder()
178-
req, err := http.NewRequest("GET", "/", http.NoBody)
178+
req, err := http.NewRequest(http.MethodGet, "/", http.NoBody)
179179
require.NoError(t, err, "failed creating request for Prometheus handler")
180180

181181
promhttp.HandlerFor(reg, promhttp.HandlerOpts{}).ServeHTTP(resp, req)

0 commit comments

Comments
 (0)