Replace exists() with isDirectory() for consistency

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent 3f8e1a1951
commit 8cdd33a1dd
  1. 2
      cache/src/main/java/dev/openrs2/cache/FlatFileStore.kt

@ -97,7 +97,7 @@ public class FlatFileStore private constructor(
override fun remove(archive: Int) { override fun remove(archive: Int) {
val path = archivePath(archive) val path = archivePath(archive)
if (!Files.exists(path)) { if (!Files.isDirectory(path)) {
return return
} }

Loading…
Cancel
Save