Spotless fix

Thought I was cool enough to edit code in the browser. Spotless said no.
pull/608/head
Adetunji Dahunsi 2 years ago committed by GitHub
parent 267adfd27f
commit 1e8d1d9810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -67,7 +67,7 @@ class OfflineFirstNewsRepository @Inject constructor(
}, },
modelDeleter = newsResourceDao::deleteNewsResources, modelDeleter = newsResourceDao::deleteNewsResources,
modelUpdater = { changedIds -> modelUpdater = { changedIds ->
changedIds.chunked(SYNC_BATCH_SIZE).forEach { chunkedIds changedIds.chunked(SYNC_BATCH_SIZE).forEach { chunkedIds ->
val networkNewsResources = network.getNewsResources(ids = chunkedIds) val networkNewsResources = network.getNewsResources(ids = chunkedIds)
// Order of invocation matters to satisfy id and foreign key constraints! // Order of invocation matters to satisfy id and foreign key constraints!
@ -80,7 +80,7 @@ class OfflineFirstNewsRepository @Inject constructor(
) )
newsResourceDao.upsertNewsResources( newsResourceDao.upsertNewsResources(
newsResourceEntities = networkNewsResources.map( newsResourceEntities = networkNewsResources.map(
NetworkNewsResource::asEntity NetworkNewsResource::asEntity,
), ),
) )
newsResourceDao.insertOrIgnoreTopicCrossRefEntities( newsResourceDao.insertOrIgnoreTopicCrossRefEntities(

Loading…
Cancel
Save