From 7bc5a3530c65f0e61b355b11c43eda91d417e12b Mon Sep 17 00:00:00 2001 From: Ruakij Date: Thu, 25 Nov 2021 00:21:25 +0100 Subject: [PATCH] Made keyInfo vars const --- src/streamHandler/PacketStreamFactory.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/streamHandler/PacketStreamFactory.js b/src/streamHandler/PacketStreamFactory.js index 59e29c2..ca98642 100644 --- a/src/streamHandler/PacketStreamFactory.js +++ b/src/streamHandler/PacketStreamFactory.js @@ -121,8 +121,8 @@ class PacketStreamFactory extends Transform{ newPacket = new HandshakePacket(); // Read key-information - let keyInfoRaw = (packet.payloadData[0x5]<<0x8) + packet.payloadData[0x6]; - let keyInfo = { + const keyInfoRaw = (packet.payloadData[0x5]<<0x8) + packet.payloadData[0x6]; + const keyInfo = { "KeyDescriptorVersion": keyInfoRaw>>0 & 0b111, "KeyType": keyInfoRaw>>3 & 0b1, "KeyIndex": keyInfoRaw>>4 & 0b11,