diff --git a/crc32/src/main/java/dev/openrs2/crc32/Crc32Command.kt b/crc32/src/main/java/dev/openrs2/crc32/Crc32Command.kt index 2b89cfe3..be7de020 100644 --- a/crc32/src/main/java/dev/openrs2/crc32/Crc32Command.kt +++ b/crc32/src/main/java/dev/openrs2/crc32/Crc32Command.kt @@ -13,10 +13,9 @@ class Crc32Command : CliktCommand(name = "crc32") { override fun run() { val crc = CRC32() + val bytes = ByteArray(4096) input.use { input -> - val bytes = ByteArray(4096) - while (true) { val len = input.read(bytes) if (len == -1) {