Skip to content

Commit 0455e7b

Browse files
committed
lint
1 parent 431c1d3 commit 0455e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/crowdsec-cli/climetrics/scrape.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func ScrapeMetrics(ctx context.Context, url string) ([]MetricPoint, error) {
7070
Timeout: 30 * time.Second,
7171
}
7272

73-
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
73+
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, http.NoBody)
7474
if err != nil {
7575
return nil, fmt.Errorf("creating request: %w", err)
7676
}

0 commit comments

Comments
 (0)