mirror of
https://github.com/sot-tech/mochi.git
synced 2026-06-14 16:43:37 -07:00
fix lint warning
This commit is contained in:
@@ -505,7 +505,7 @@ func (s *store) countPeers(ih bittorrent.InfoHash) (seeders int, leechers int) {
|
||||
if rows.Next() {
|
||||
si, li := -1, -1
|
||||
for i, field := range rows.FieldDescriptions() {
|
||||
name := strings.ToUpper(string(field.Name))
|
||||
name := strings.ToUpper(field.Name)
|
||||
switch name {
|
||||
case s.Peer.CountSeedersColumn:
|
||||
si = i
|
||||
|
||||
Reference in New Issue
Block a user