From 3ed591d89b21bec056de156192bbab7bfd8e1305 Mon Sep 17 00:00:00 2001 From: Graham Date: Thu, 2 Apr 2020 19:56:59 +0100 Subject: [PATCH] Reduce size of the use block in Crc32Command Signed-off-by: Graham --- crc32/src/main/java/dev/openrs2/crc32/Crc32Command.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {