From 24e230d455000122fa0e0c8d766a2046cb034863 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 18 Jul 2023 14:33:13 +0000 Subject: [PATCH] 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> --- cmd/stupgrades/main.go | 2 +- lib/connections/relay_dial.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/stupgrades/main.go b/cmd/stupgrades/main.go index 3b2c79ff2..66c40dc29 100644 --- a/cmd/stupgrades/main.go +++ b/cmd/stupgrades/main.go @@ -57,7 +57,7 @@ type githubReleases struct { url string } -func (p *githubReleases) ServeHTTP(w http.ResponseWriter, req *http.Request) { +func (p *githubReleases) ServeHTTP(w http.ResponseWriter, _ *http.Request) { log.Println("Fetching", p.url) rels := upgrade.FetchLatestReleases(p.url, "") if rels == nil { diff --git a/lib/connections/relay_dial.go b/lib/connections/relay_dial.go index d79719533..d21d956d5 100644 --- a/lib/connections/relay_dial.go +++ b/lib/connections/relay_dial.go @@ -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 }