Skip to content

Commit

Permalink
Update KDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed Oct 9, 2024
1 parent b7cb85b commit 2d9ffaa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ abstract class Syncer<CollectionType: LocalCollection<*>>(
*
* @param localCollections The local collections to be updated or deleted
* @param dbCollections The database collections possibly containing new information
* @return New found database collections to be created in provider
* @return Pair of:
* 1) New found database collections to be created in provider
* 2) Local collections which have been deleted
*/
@VisibleForTesting
internal fun updateCollections(
Expand All @@ -152,7 +154,7 @@ abstract class Syncer<CollectionType: LocalCollection<*>>(
if (dbCollection == null) {
// Collection not available in db = on server (anymore), delete obsolete local collection
localCollection.deleteCollection()
deletedLocalCollections.add(localCollection)
deletedLocalCollections.add(localCollection) // Add to "not to be synced" list
} else {
// Collection exists locally, update local collection and remove it from "to be created" map
update(localCollection, dbCollection)
Expand Down

0 comments on commit 2d9ffaa

Please sign in to comment.