aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>2023-07-18 14:33:13 +0000
committerGitHub <noreply@github.com>2023-07-18 14:33:13 +0000
commit24e230d455000122fa0e0c8d766a2046cb034863 (patch)
tree76b795cc60b6f1e2a1401cb0dfc3806aa2202a66
parent31daa20367733554ab666fd9ab1623fef0630580 (diff)
downloadsyncthing-24e230d455000122fa0e0c8d766a2046cb034863.tar.gz
syncthing-24e230d455000122fa0e0c8d766a2046cb034863.zip
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>
-rw-r--r--cmd/stupgrades/main.go2
-rw-r--r--lib/connections/relay_dial.go2
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
}