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
@@ -24,25 +24,25 @@ type wrapperRewind struct {
}
func (w *wrapperRewind) Write(p []byte) (int, error) {
return w.parent.Write(p)
return w.parent.Write(p) // nolint: wrapcheck
}
func (w *wrapperRewind) WriteTimeout(p []byte, timeout time.Duration) (int, error) {
return w.parent.WriteTimeout(p, timeout)
return w.parent.WriteTimeout(p, timeout) // nolint: wrapcheck
}
func (w *wrapperRewind) Read(p []byte) (int, error) {
w.mutex.Lock()
defer w.mutex.Unlock()
return w.activeReader.Read(p)
return w.activeReader.Read(p) // nolint: wrapcheck
}
func (w *wrapperRewind) ReadTimeout(p []byte, _ time.Duration) (int, error) {
w.mutex.Lock()
defer w.mutex.Unlock()
return w.activeReader.Read(p)
return w.activeReader.Read(p) // nolint: wrapcheck
}
func (w *wrapperRewind) Conn() net.Conn {
@@ -64,7 +64,7 @@ func (w *wrapperRewind) RemoteAddr() *net.TCPAddr {
func (w *wrapperRewind) Close() error {
w.buf.Reset()
return w.parent.Close()
return w.parent.Close() // nolint: wrapcheck
}
func (w *wrapperRewind) Rewind() {