We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 333dd7a commit a7a03b4Copy full SHA for a7a03b4
.github/workflows/golangci-lint.yml
@@ -22,6 +22,6 @@ jobs:
22
with:
23
go-version: stable
24
- name: golangci-lint
25
- uses: golangci/golangci-lint-action@v6
+ uses: golangci/golangci-lint-action@v7
26
27
- version: v1.64
+ version: v2.0
pkg/scraper/scraper.go
@@ -95,7 +95,7 @@ func (s *Scraper) Collect(ch chan<- prometheus.Metric) {
95
return
96
}
97
98
- defer resp.Body.Close()
+ defer func() { _ = resp.Body.Close() }()
99
body, err := io.ReadAll(resp.Body)
100
if err != nil {
101
s.errCnt++
0 commit comments