There was an error while loading. Please reload this page.
1 parent 0a2fbb6 commit c9db9d4Copy full SHA for c9db9d4
okhttp/src/main/kotlin/okhttp3/internal/cache/CacheLock.kt
@@ -32,7 +32,11 @@ internal object CacheLock {
32
fileSystem: FileSystem,
33
directory: Path,
34
): Closeable {
35
- return if (fileSystem == FileSystem.SYSTEM && !Platform.isAndroid) {
+ if (fileSystem != FileSystem.SYSTEM) {
36
+ return Closeable {}
37
+ }
38
+
39
+ return if (!Platform.isAndroid) {
40
fileSystemLock(inMemoryLock(directory), directory)
41
} else {
42
inMemoryLock(directory)
0 commit comments