Update golanci-lint

This commit is contained in:
9seconds
2021-04-09 14:35:04 +03:00
parent 81bca75c25
commit 585ebfeb50
32 changed files with 101 additions and 75 deletions
+2 -2
View File
@@ -15,13 +15,13 @@ type MtglibNetworkMock struct {
func (m *MtglibNetworkMock) Dial(network, address string) (net.Conn, error) {
args := m.Called(network, address)
return args.Get(0).(net.Conn), args.Error(1)
return args.Get(0).(net.Conn), args.Error(1) // nolint: wrapcheck
}
func (m *MtglibNetworkMock) DialContext(ctx context.Context, network, address string) (net.Conn, error) {
args := m.Called(ctx, network, address)
return args.Get(0).(net.Conn), args.Error(1)
return args.Get(0).(net.Conn), args.Error(1) // nolint: wrapcheck
}
func (m *MtglibNetworkMock) MakeHTTPClient(dialFunc func(ctx context.Context,
+4 -4
View File
@@ -24,7 +24,7 @@ func (n *NetConnMock) Write(b []byte) (int, error) {
}
func (n *NetConnMock) Close() error {
return n.Called().Error(0)
return n.Called().Error(0) // nolint: wrapcheck
}
func (n *NetConnMock) LocalAddr() net.Addr {
@@ -36,13 +36,13 @@ func (n *NetConnMock) RemoteAddr() net.Addr {
}
func (n *NetConnMock) SetDeadline(t time.Time) error {
return n.Called(t).Error(0)
return n.Called(t).Error(0) // nolint: wrapcheck
}
func (n *NetConnMock) SetReadDeadline(t time.Time) error {
return n.Called(t).Error(0)
return n.Called(t).Error(0) // nolint: wrapcheck
}
func (n *NetConnMock) SetWriteDeadline(t time.Time) error {
return n.Called(t).Error(0)
return n.Called(t).Error(0) // nolint: wrapcheck
}