Skip to content

Commit

Permalink
Tweak NormalizedCache.remove()'s KDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
BoD committed Mar 6, 2024
1 parent 09c1652 commit 98b11d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ interface NormalizedCache : ReadOnlyNormalizedCache {
*
* @param cacheKey of record to be removed
* @param cascade remove referenced records if true
* @return `true` if a record with such key was successfully removed, `false` otherwise
* @return `true` if at least one record was successfully removed, `false` otherwise
*/
fun remove(cacheKey: CacheKey, cascade: Boolean): Boolean

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class OptimisticNormalizedCacheWrapper(private val wrapped: NormalizedCache) : O
result = true
if (cascade) {
for (cacheReference in recordJournal.current.referencedFields()) {
result = result || remove(CacheKey(cacheReference.key), true)
remove(CacheKey(cacheReference.key), true)
}
}
}
Expand Down

0 comments on commit 98b11d3

Please sign in to comment.