feat: 优化代码

pull/178/head
kunfei 5 years ago
parent dd1d92bed3
commit 036bb3be53
  1. 6
      app/src/main/java/io/legado/app/service/CheckSourceService.kt

@ -72,7 +72,11 @@ class CheckSourceService : BaseService() {
if (processIndex < allIds.size) { if (processIndex < allIds.size) {
val sourceUrl = allIds[processIndex] val sourceUrl = allIds[processIndex]
App.db.bookSourceDao().getBookSource(sourceUrl)?.let { source -> App.db.bookSourceDao().getBookSource(sourceUrl)?.let { source ->
check(source) if (source.searchUrl.isNullOrEmpty()) {
onNext(sourceUrl)
} else {
check(source)
}
} ?: onNext(sourceUrl) } ?: onNext(sourceUrl)
} }
} }

Loading…
Cancel
Save