Removed unnecessary async { }

This commit is contained in:
dankito 2024-11-27 03:35:19 +01:00
parent 1e372cf592
commit c65d99e35d
1 changed files with 12 additions and 14 deletions

View File

@ -117,7 +117,6 @@ open class EmailsFetcher(
return@runBlocking emptyList() return@runBlocking emptyList()
} }
async(coroutineDispatcher) {
val startUid = max(status.options.lastRetrievedMessageId?.let { it + 1 } ?: 0, 1) // message numbers start at 1 val startUid = max(status.options.lastRetrievedMessageId?.let { it + 1 } ?: 0, 1) // message numbers start at 1
folder.getMessagesByUID(startUid, UIDFolder.MAXUID).mapNotNull { message -> folder.getMessagesByUID(startUid, UIDFolder.MAXUID).mapNotNull { message ->
@ -133,7 +132,6 @@ open class EmailsFetcher(
} }
.awaitAll() .awaitAll()
.filterNotNull() .filterNotNull()
}.await()
} }
protected open fun getEmail(message: Message, status: FetchEmailsStatus): Email? { protected open fun getEmail(message: Message, status: FetchEmailsStatus): Email? {