mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-31 02:48:27 +00:00
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:
parent
31daa20367
commit
24e230d455
@ -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 {
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user