mirror of
https://github.com/sot-tech/mochi.git
synced 2026-07-16 05:18:09 -07:00
Address easy golint comments
This commit is contained in:
@@ -210,7 +210,7 @@ func (c *Conn) PurgeInactivePeers(purgeEmptyTorrents bool, before time.Time) err
|
||||
index := 0
|
||||
keys := make([]string, len(c.torrents))
|
||||
|
||||
for infohash, _ := range c.torrents {
|
||||
for infohash := range c.torrents {
|
||||
keys[index] = infohash
|
||||
index++
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user