adjustments

This commit is contained in:
Ben Sarmiento
2024-02-16 05:47:53 +01:00
parent 945be6066d
commit 255fbfe976
5 changed files with 13 additions and 12 deletions

View File

@@ -11,10 +11,7 @@ func (ls *LibraryState) Eq(a LibraryState) bool {
if ls.TotalCount == 0 || ls.FirstActiveTorrentId == "" || ls.FirstTorrentId == "" {
return false
}
if a.TotalCount != ls.TotalCount || a.ActiveCount != ls.ActiveCount || a.FirstActiveTorrentId != ls.FirstActiveTorrentId || a.FirstTorrentId != ls.FirstTorrentId {
return false
}
return true
return a.TotalCount == ls.TotalCount && a.ActiveCount == ls.ActiveCount && a.FirstActiveTorrentId == ls.FirstActiveTorrentId && a.FirstTorrentId == ls.FirstTorrentId
}
func (t *TorrentManager) setNewLatestState(checksum LibraryState) {