Avoid unnecessary string creation when sorting

This commit is contained in:
arkon
2021-12-24 10:26:24 -05:00
parent 448645d83a
commit 1c5c370c12
4 changed files with 7 additions and 8 deletions

View File

@@ -130,8 +130,8 @@ fun syncChaptersWithSource(
// Try to to use the fetch date it originally had to not pollute 'Updates' tab
toDelete.filter { it.chapter_number == chapter.chapter_number }
.minByOrNull { it.date_fetch }!!.let {
chapter.date_fetch = it.date_fetch
}
chapter.date_fetch = it.date_fetch
}
readded.add(chapter)
}
}