fix(Makefile): adapt Makefile and golangci lint
Some checks failed
Golang Tests / unittest (stable, ubuntu-latest-amd64) (push) Failing after 5s
Markdown linter / markdown-lint (push) Failing after 2s
Golang Tests / unittest (stable, ubuntu-latest-arm64) (push) Failing after 15s
Golang CI lint / golangci (stable, ubuntu-latest-amd64) (push) Successful in 2m1s
Golang CI lint / golangci (stable, ubuntu-latest-arm64) (push) Successful in 2m51s

This commit is contained in:
2025-06-01 13:23:40 +02:00
parent 9eed0fe492
commit b8cb19ea7b
3 changed files with 99 additions and 70 deletions

View File

@ -50,7 +50,7 @@ func (c *Collector) Collect(ch chan<- prometheus.Metric) {
os.Exit(1)
}
} else {
defer s.Close()
defer func() { _ = s.Close() }()
}
c.collectServerUpMetric(ch, s)