Apply suggestions from code review

Co-authored-by: Koitharu <nvasya95@gmail.com>
pull/320/head
ViAnh 3 years ago committed by GitHub
parent 5c3662306c
commit 7349df87ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,7 +30,7 @@ class PagesCache @Inject constructor(@ApplicationContext context: Context) {
size = FileSize.MEGABYTES.convert(200, FileSize.BYTES),
)
suspend fun get(url: String): File? = withContext(Dispatchers.IO) {
suspend fun get(url: String): File? = runInterruptible(Dispatchers.IO) {
lruCache.get(url)?.takeIfReadable()
}

Loading…
Cancel
Save