From 3410e43de793033a53831981593e69c917c9ae14 Mon Sep 17 00:00:00 2001 From: Colin White Date: Wed, 13 Nov 2024 21:32:24 -0800 Subject: [PATCH] Clean up. --- coil-core/src/commonMain/kotlin/coil3/disk/DiskLruCache.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }