Fix go vet suggestions
This commit is contained in:
parent
1236a5ee5b
commit
5f4f63cc44
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ func purgeTorrents(p Pool, threshold time.Duration, interval time.Duration) {
|
||||||
|
|
||||||
err = conn.PurgeInactiveTorrents(before)
|
err = conn.PurgeInactiveTorrents(before)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Errorf("Error purging torrents: ", err)
|
glog.Errorf("Error purging torrents: %s", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ func TestTorrentPurging(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if status != http.StatusOK {
|
if status != http.StatusOK {
|
||||||
t.Fatal("expected torrent to exist (got %s)", http.StatusText(status))
|
t.Fatalf("expected torrent to exist (got %s)", http.StatusText(status))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove seeder.
|
// Remove seeder.
|
||||||
|
|
Loading…
Reference in a new issue