Use elvis operator in readJar()

bzip2
Graham 5 years ago
parent 2e1db9f0b1
commit 8f3591670b
  1. 6
      asm/src/main/java/dev/openrs2/asm/classpath/Library.kt

@ -150,10 +150,8 @@ class Library constructor() : Iterable<ClassNode> {
JarInputStream(Files.newInputStream(path)).use { `in` -> JarInputStream(Files.newInputStream(path)).use { `in` ->
while (true) { while (true) {
val entry = `in`.nextJarEntry val entry = `in`.nextJarEntry ?: break
if (entry == null) { if (!entry.name.endsWith(CLASS_SUFFIX)) {
break
} else if (!entry.name.endsWith(CLASS_SUFFIX)) {
continue continue
} }

Loading…
Cancel
Save