mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 06:14:01 +03:00
Update golanci-lint
This commit is contained in:
+2
-2
@@ -158,13 +158,13 @@ func (p *PrometheusFactory) Make() events.Observer {
|
||||
|
||||
// Serve starts an HTTP server on a given listener.
|
||||
func (p *PrometheusFactory) Serve(listener net.Listener) error {
|
||||
return p.httpServer.Serve(listener)
|
||||
return p.httpServer.Serve(listener) // nolint: wrapcheck
|
||||
}
|
||||
|
||||
// Close stops a factory. Please pay attention that underlying listener
|
||||
// is not closed.
|
||||
func (p *PrometheusFactory) Close() error {
|
||||
return p.httpServer.Shutdown(context.Background())
|
||||
return p.httpServer.Shutdown(context.Background()) // nolint: wrapcheck
|
||||
}
|
||||
|
||||
// NewPrometheus builds an events.ObserverFactory which can serve HTTP
|
||||
|
||||
+1
-1
@@ -146,7 +146,7 @@ type StatsdFactory struct {
|
||||
|
||||
// Close stops sending requests to statsd.
|
||||
func (s StatsdFactory) Close() error {
|
||||
return s.client.Close()
|
||||
return s.client.Close() // nolint: wrapcheck
|
||||
}
|
||||
|
||||
// Make build a new observer.
|
||||
|
||||
@@ -30,7 +30,7 @@ func (s *statsdFakeServer) Addr() string {
|
||||
|
||||
func (s *statsdFakeServer) Close() error {
|
||||
if s.conn != nil {
|
||||
return s.conn.Close()
|
||||
return s.conn.Close() // nolint: wrapcheck
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user