From 1905c7adffb272a98a675dc7de390e9b0b8c4d2f Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 7 May 2025 09:36:47 +1000 Subject: [PATCH] lint --- peer.go | 2 -- torrent-stats.go | 1 - 2 files changed, 3 deletions(-) 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 { -- 2.51.0