Re-add else condition

This commit is contained in:
Ben Sarmiento
2024-01-18 21:55:19 +01:00
parent 9472fae9fe
commit 6a15f233af

View File

@@ -224,8 +224,7 @@ func (t *TorrentManager) repair(torrent *Torrent) {
info, err := t.redownloadTorrent(torrent, "") info, err := t.redownloadTorrent(torrent, "")
if err != nil { if err != nil {
t.log.Warnf("Cannot repair torrent %s", t.GetKey(torrent)) t.log.Warnf("Cannot repair torrent %s", t.GetKey(torrent))
} } else if info.Progress != 100 || (info.Progress == 100 && !t.isStillBroken(info, brokenFiles)) {
if info.Progress != 100 || (info.Progress == 100 && !t.isStillBroken(info, brokenFiles)) {
t.log.Infof("Successfully repaired torrent %s", t.GetKey(torrent)) t.log.Infof("Successfully repaired torrent %s", t.GetKey(torrent))
return return
} }