fix linting
This commit is contained in:
parent
d5868cfb33
commit
c1464f2f07
|
@ -51,7 +51,7 @@ func Test_currFromContext(t *testing.T) {
|
|||
|
||||
options := Options{
|
||||
Name: "dummy",
|
||||
Execute: func(ctx context.Context) error { return nil },
|
||||
Execute: func(_ context.Context) error { return nil },
|
||||
}
|
||||
|
||||
got := New(options)
|
||||
|
|
|
@ -117,7 +117,7 @@ func NetworkFromContext(ctx *cli.Context) Network {
|
|||
if contextDialer, ok := proxyDialer.(proxy.ContextDialer); ok {
|
||||
transport.DialContext = contextDialer.DialContext
|
||||
} else {
|
||||
transport.DialContext = func(ctx context.Context, network, addr string) (net.Conn, error) {
|
||||
transport.DialContext = func(_ context.Context, network, addr string) (net.Conn, error) {
|
||||
return proxyDialer.Dial(network, addr)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue