]> Sergey Matveev's repositories - btrtrc.git/commitdiff
lint
authorMatt Joiner <anacrolix@gmail.com>
Tue, 6 May 2025 23:36:47 +0000 (09:36 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 6 May 2025 23:36:47 +0000 (09:36 +1000)
peer.go
torrent-stats.go

diff --git a/peer.go b/peer.go
index 27f094fafd0ef0b164d3371890fb5f15bcfef036..7a9395314ecbd48fd6cab1286b9b9500f0e0020c 100644 (file)
--- a/peer.go
+++ b/peer.go
@@ -827,7 +827,6 @@ func (c *Peer) deleteAllRequests(reason updateRequestReason) {
                        p.updateRequests(reason)
                }
        })
-       return
 }
 
 func (c *Peer) assertNoRequests() {
@@ -842,7 +841,6 @@ func (c *Peer) cancelAllRequests() {
                return true
        })
        c.assertNoRequests()
-       return
 }
 
 func (c *Peer) peerPriority() (peerPriority, error) {
index 3f3586e5355f2b8910640591fb4907f2debbad50..999206078d87cc6b30ef2bde497251eaaa8db9a5 100644 (file)
@@ -31,7 +31,6 @@ func (me *TorrentGauges) Add(agg TorrentGauges) {
        for i := 0; i < reflect.TypeFor[TorrentGauges]().NumField(); i++ {
                *dst.Field(i).Addr().Interface().(*int) += src.Field(i).Interface().(int)
        }
-       return
 }
 
 type TorrentStatCounters struct {