Remove useless check
This commit is contained in:
parent
bc208bac30
commit
392b3c040e
@ -126,11 +126,10 @@ class EHentaiUpdateHelper(context: Context) {
|
|||||||
val (newHistory, deleteHistory) = getHistory(getChapterByMangaId.await(accepted.manga.id), chainsAsChapters, chainsAsHistory)
|
val (newHistory, deleteHistory) = getHistory(getChapterByMangaId.await(accepted.manga.id), chainsAsChapters, chainsAsHistory)
|
||||||
|
|
||||||
// Delete the duplicate history first
|
// Delete the duplicate history first
|
||||||
if (deleteHistory.isNotEmpty()) {
|
deleteHistory.forEach {
|
||||||
deleteHistory.forEach {
|
removeHistoryById.await(it)
|
||||||
removeHistoryById.await(it)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert new history
|
// Insert new history
|
||||||
newHistory.forEach {
|
newHistory.forEach {
|
||||||
upsertHistory.await(it)
|
upsertHistory.await(it)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user