mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 17:34:01 +03:00
Update to the latest golangci-lint
This commit is contained in:
+2
-2
@@ -36,13 +36,13 @@ func (s socks5Dialer) DialContext(ctx context.Context, network, address string)
|
||||
}
|
||||
|
||||
if err := s.handshake(conn); err != nil {
|
||||
conn.Close()
|
||||
conn.Close() //nolint: errcheck
|
||||
|
||||
return nil, fmt.Errorf("cannot perform a handshake: %w", err)
|
||||
}
|
||||
|
||||
if err := s.connect(conn, address); err != nil {
|
||||
conn.Close()
|
||||
conn.Close() //nolint: errcheck
|
||||
|
||||
return nil, fmt.Errorf("cannot connect to a destination host %s: %w", address, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user