diff --git a/shared/src/iosMain/kotlin/dev/sasikanth/rss/reader/components/IOSImageLoader.kt b/shared/src/iosMain/kotlin/dev/sasikanth/rss/reader/components/IOSImageLoader.kt index dc98405e8..0fdb59823 100644 --- a/shared/src/iosMain/kotlin/dev/sasikanth/rss/reader/components/IOSImageLoader.kt +++ b/shared/src/iosMain/kotlin/dev/sasikanth/rss/reader/components/IOSImageLoader.kt @@ -124,13 +124,7 @@ class IOSImageLoader : ImageLoader { NSCharacterSet.URLFragmentAllowedCharacterSet ) ?: return@withContext null - val cachedImage = loadCachedImage(encodedUrl) - val data = - if (cachedImage != null) { - cachedImage - } else { - downloadImage(encodedUrl) ?: return@withContext null - } + val data = loadCachedImage(encodedUrl) ?: downloadImage(encodedUrl) ?: return@withContext null return@withContext Image.makeFromEncoded(data).toBitmap(size).asComposeImageBitmap() }