Skip to content

Commit

Permalink
Fix ProfileCacheManager
Browse files Browse the repository at this point in the history
  • Loading branch information
WinG4merBR committed Jan 5, 2025
1 parent ff59284 commit 7b49542
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ object ProfileCacheManager {
.maximumSize(100)
.build()

suspend fun loadImageFromCache(url: String): BufferedImage? {
suspend fun loadImageFromCache(url: String): BufferedImage {
return imageCache.getIfPresent(url) ?: run {
val image = ImageUtils.loadImageFromURL(url)
val image = ImageUtils.loadProfileAssetFromURL(url)
imageCache.put(url, image)
image
}
Expand Down

0 comments on commit 7b49542

Please # to comment.