style(CustomDialog): 🎨 去除多余的代码

This commit is contained in:
Discut
2023-05-23 22:07:40 +08:00
parent 835c3df175
commit 6a41cd6cbe
@@ -735,7 +735,6 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
val useReplace = AppConfig.exportUseReplace && book.getUseReplaceRule() val useReplace = AppConfig.exportUseReplace && book.getUseReplaceRule()
val contentProcessor = ContentProcessor.get(book.name, book.origin) val contentProcessor = ContentProcessor.get(book.name, book.origin)
var chapterList: MutableList<BookChapter> = ArrayList() var chapterList: MutableList<BookChapter> = ArrayList()
appDb.bookChapterDao.getChapterList(book.bookUrl)
appDb.bookChapterDao.getChapterList(book.bookUrl).forEachIndexed { index, chapter -> appDb.bookChapterDao.getChapterList(book.bookUrl).forEachIndexed { index, chapter ->
if (scope.indexOf(index) >= 0) { if (scope.indexOf(index) >= 0) {
chapterList.add(chapter) chapterList.add(chapter)