all: unused parameter should be replaced by underscore (#8989)
refactor: unused parameter should be replaced by underscore Unused parameters in functions or methods should be replaced with `_` (underscore) or removed. Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent
31daa20367
commit
24e230d455
@@ -65,7 +65,7 @@ func (d *relayDialer) Dial(ctx context.Context, id protocol.DeviceID, uri *url.U
|
||||
return newInternalConn(tc, connTypeRelayClient, false, d.wanPriority), nil
|
||||
}
|
||||
|
||||
func (d *relayDialer) Priority(host string) int {
|
||||
func (d *relayDialer) Priority(_ string) int {
|
||||
return d.wanPriority
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user