orangy
try/catch
can be an expression?
val snapshot = try {
cache[key] ?: return null
} catch (e: IOException) {
// Give up because the cache cannot be read.
return null
}
snapshots
gets type as DiskLruCache.Snapshot
, no nulls
from okhttp3 code converted to Kotlin