diff --git a/coil-network-core/src/commonMain/kotlin/coil3/network/NetworkFetcher.kt b/coil-network-core/src/commonMain/kotlin/coil3/network/NetworkFetcher.kt index 32e98103c1..71a335e249 100644 --- a/coil-network-core/src/commonMain/kotlin/coil3/network/NetworkFetcher.kt +++ b/coil-network-core/src/commonMain/kotlin/coil3/network/NetworkFetcher.kt @@ -78,7 +78,7 @@ class NetworkFetcher( // Write the response to the disk cache then open a new snapshot. snapshot = writeToDiskCache(snapshot, cacheResponse, networkRequest, response) if (snapshot != null) { - val cacheResponse = snapshot!!.toNetworkResponseOrNull() + cacheResponse = snapshot!!.toNetworkResponseOrNull() return@executeNetworkRequest SourceFetchResult( source = snapshot!!.toImageSource(), mimeType = getMimeType(url, cacheResponse?.headers?.get(CONTENT_TYPE)),