diff --git a/coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt b/coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt index ae5d5fdb3e..70744a6c7f 100644 --- a/coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt +++ b/coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt @@ -519,7 +519,9 @@ internal class DiskLruCache( val entry = lruEntries[key] ?: return false val removed = removeEntry(entry) - if (removed && size <= maxSize) mostRecentTrimFailed = false + if (removed && size <= maxSize) { + mostRecentTrimFailed = false + } return removed }