From 54f2a44eabe02b4a2e9253bc85db1c9b75f00411 Mon Sep 17 00:00:00 2001 From: Graham Date: Fri, 17 Feb 2023 19:52:35 +0000 Subject: [PATCH] Move assignment outside if Signed-off-by: Graham --- .../org/openrs2/archive/cache/nxt/Js5ResponseDecoder.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archive/src/main/kotlin/org/openrs2/archive/cache/nxt/Js5ResponseDecoder.kt b/archive/src/main/kotlin/org/openrs2/archive/cache/nxt/Js5ResponseDecoder.kt index 3a882cb4..d34eb25a 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/cache/nxt/Js5ResponseDecoder.kt +++ b/archive/src/main/kotlin/org/openrs2/archive/cache/nxt/Js5ResponseDecoder.kt @@ -38,10 +38,10 @@ public class Js5ResponseDecoder : ByteToMessageDecoder() { request = Request(prefetch, archive, group) - if (buffers.containsKey(request)) { - state = State.READ_DATA + state = if (buffers.containsKey(request)) { + State.READ_DATA } else { - state = State.READ_LEN + State.READ_LEN } }