Skip to content

Commit

Permalink
Fix name shadowing in NetworkFetcher. (#2620)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrtwhite authored Oct 30, 2024
1 parent af886f8 commit 88ae47c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit 88ae47c

Please sign in to comment.