Remove useless check

This commit is contained in:
Jobobby04 2022-07-11 19:42:53 -04:00
parent bc208bac30
commit 392b3c040e

View File

@ -126,11 +126,10 @@ class EHentaiUpdateHelper(context: Context) {
val (newHistory, deleteHistory) = getHistory(getChapterByMangaId.await(accepted.manga.id), chainsAsChapters, chainsAsHistory)
// Delete the duplicate history first
if (deleteHistory.isNotEmpty()) {
deleteHistory.forEach {
removeHistoryById.await(it)
}
deleteHistory.forEach {
removeHistoryById.await(it)
}
// Insert new history
newHistory.forEach {
upsertHistory.await(it)