fix linting

This commit is contained in:
Robert Kaussow 2024-02-12 09:10:04 +01:00
parent d5868cfb33
commit c1464f2f07
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)
}
}