From: Matt Joiner Date: Tue, 6 May 2025 23:36:47 +0000 (+1000) Subject: lint X-Git-Tag: v1.59.0~174 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=1905c7adffb272a98a675dc7de390e9b0b8c4d2f;p=btrtrc.git lint --- diff --git a/peer.go b/peer.go index 27f094fa..7a939531 100644 --- 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) { diff --git a/torrent-stats.go b/torrent-stats.go index 3f3586e5..99920607 100644 --- a/torrent-stats.go +++ b/torrent-stats.go @@ -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 {