Fix go vet suggestions

This commit is contained in:
Justin Li 2014-07-16 14:00:45 -04:00
parent 1236a5ee5b
commit 5f4f63cc44
2 changed files with 2 additions and 2 deletions

View file

@ -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)
} }
} }
} }

View file

@ -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.