From 32573765d1ee99b8bcb13bf2ded8a82191088f46 Mon Sep 17 00:00:00 2001 From: Noah Manneschmidt Date: Thu, 4 Apr 2024 22:37:07 -0700 Subject: [PATCH] formatting --- sdk/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sdk/index.ts b/sdk/index.ts index 30a2f0a..41aa464 100644 --- a/sdk/index.ts +++ b/sdk/index.ts @@ -7,7 +7,6 @@ import { PACKET_FLAG_START_OF_COMMAND, } from "./packet"; - // TODO: Probably move all this bacon packet stuff to `packet.js`? interface PacketHandlingState { currentPacket: Uint8Array; @@ -34,9 +33,9 @@ export const handlePacket: StateF = (stat // console.log("Raw Packet Data: ", data); // Return if packet is empty - if (data.length <= 3){ + if (data.length <= 3) { console.log("Empty Packet"); - return [state, []]; + return [state, []]; } const cmd = data[0]; const byte_len = data[1]; @@ -93,4 +92,4 @@ export const handlePacket: StateF = (stat } return [newState, eventsToPass.map((e) => new Bacon.Next(e))]; -}; \ No newline at end of file +};