Apply suggestions from code review

Co-authored-by: Koitharu <nvasya95@gmail.com>
pull/321/head
ViAnh 3 years ago committed by Koitharu
parent 44ce3ce66d
commit 98f5615d77

@ -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