2022-07-18 12:25:32 +00:00
|
|
|
// Don't flag lines such as "io.Copy(io.Discard, resp.Body)".
|
2019-06-07 08:37:49 +00:00
|
|
|
io.Copy
|
2022-03-25 16:59:51 +00:00
|
|
|
// The next two are used in HTTP handlers, any error is handled by the server itself.
|
|
|
|
io.WriteString
|
|
|
|
(net/http.ResponseWriter).Write
|
|
|
|
// No need to check for errors on server's shutdown.
|
|
|
|
(*net/http.Server).Shutdown
|
|
|
|
|
2019-04-29 08:54:40 +00:00
|
|
|
// Never check for logger errors.
|
2021-07-30 08:11:43 +00:00
|
|
|
(github.com/go-kit/log.Logger).Log
|
2022-03-25 16:59:51 +00:00
|
|
|
|
|
|
|
// Never check for rollback errors as Rollback() is called when a previous error was detected.
|
|
|
|
(github.com/prometheus/prometheus/storage.Appender).Rollback
|