Skip to content

Commit

Permalink
Minor changes (KDoc, naming)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Oct 10, 2024
1 parent 649259b commit da50043
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ class SyncerTest {
every { dbCollection.url } returns "http://newly.found/collection".toHttpUrl()

// Should return list of newly created local collections
val newLocalCollections = syncer.createLocalCollections(provider, listOf(dbCollection))
assertEquals(listOf(localCollection), newLocalCollections)
val result = syncer.createLocalCollections(provider, listOf(dbCollection))
assertEquals(listOf(localCollection), result)
}


Expand Down
6 changes: 3 additions & 3 deletions app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ abstract class Syncer<CollectionType: LocalCollection<*>>(
}

/**
* Updates and deletes local collections. Specifically:
* Updates and deletes local collections.
*
* - Updates local collections with possibly new info from corresponding database collections.
* - Deletes local collections if corresponding database collections are missing.
* - Creates local collections if database collections without local match are available.
* - Deletes local collections without a corresponding database collection.
* - Creates local collections for database collections without local match.
*
* @param provider Content provider client, used to create local collections
* @param localCollections The current local collections
Expand Down

0 comments on commit da50043

Please sign in to comment.