mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
e2ede285a2
* refactor: move from io/ioutil to io and os packages * use fs.DirEntry instead of os.FileInfo after os.ReadDir Signed-off-by: MOREL Matthieu <matthieu.morel@cnp.fr>
14 lines
511 B
Plaintext
14 lines
511 B
Plaintext
// Don't flag lines such as "io.Copy(io.Discard, resp.Body)".
|
|
io.Copy
|
|
// 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
|
|
|
|
// Never check for logger errors.
|
|
(github.com/go-kit/log.Logger).Log
|
|
|
|
// Never check for rollback errors as Rollback() is called when a previous error was detected.
|
|
(github.com/prometheus/prometheus/storage.Appender).Rollback
|