Upgrade golangci-lint for 1.42

This commit is contained in:
9seconds
2021-08-30 11:46:32 +03:00
parent 7718f62477
commit 3e0880f6b4
29 changed files with 90 additions and 89 deletions
+5 -5
View File
@@ -23,7 +23,7 @@ func (w *wrapperCtx) WriteTimeout(p []byte, timeout time.Duration) (int, error)
return 0, fmt.Errorf("cannot write because context was closed: %w", w.ctx.Err())
default:
return w.parent.WriteTimeout(p, timeout)
return w.parent.WriteTimeout(p, timeout) // nolint: wrapcheck
}
}
@@ -34,7 +34,7 @@ func (w *wrapperCtx) Write(p []byte) (int, error) {
return 0, fmt.Errorf("cannot write because context was closed: %w", w.ctx.Err())
default:
return w.parent.Write(p)
return w.parent.Write(p) // nolint: wrapcheck
}
}
@@ -45,7 +45,7 @@ func (w *wrapperCtx) ReadTimeout(p []byte, timeout time.Duration) (int, error) {
return 0, fmt.Errorf("cannot write because context was closed: %w", w.ctx.Err())
default:
return w.parent.ReadTimeout(p, timeout)
return w.parent.ReadTimeout(p, timeout) // nolint: wrapcheck
}
}
@@ -56,14 +56,14 @@ func (w *wrapperCtx) Read(p []byte) (int, error) {
return 0, fmt.Errorf("cannot write because context was closed: %w", w.ctx.Err())
default:
return w.parent.Read(p)
return w.parent.Read(p) // nolint: wrapcheck
}
}
func (w *wrapperCtx) Close() error {
w.cancel()
return w.parent.Close()
return w.parent.Close() // nolint: wrapcheck
}
func (w *wrapperCtx) Conn() net.Conn {