style: remove unnecessary whitespace in packet.ts and basic.test.ts
All checks were successful
CI / build (push) Successful in 17s
CI / publish (push) Successful in 14s

This commit is contained in:
2025-09-06 19:07:27 +01:00
parent 61b7c50868
commit 22999c34f9
2 changed files with 2 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ export interface OutgoingPacket {
export function packOutgoingPacket(outgoingPacket: OutgoingPacket): Uint8Array { export function packOutgoingPacket(outgoingPacket: OutgoingPacket): Uint8Array {
// Default to empty data if not provided // Default to empty data if not provided
const data = outgoingPacket.data ?? new Uint8Array(0); const data = outgoingPacket.data ?? new Uint8Array(0);
// Verify that the data does not exceed the maximum data length. // Verify that the data does not exceed the maximum data length.
if (data.length > MAX_DATA_LENGTH) { if (data.length > MAX_DATA_LENGTH) {
throw RangeError( throw RangeError(

View File

@@ -28,7 +28,7 @@ test("Parse a basic message (0x0001).", () => {
// Given // Given
const encoder = new TextEncoder(); const encoder = new TextEncoder();
const originalMessage = encoder.encode("Test message"); const originalMessage = encoder.encode("Test message");
// First encrypt the message to get valid encrypted data // First encrypt the message to get valid encrypted data
const encryptedData = packers[MessageTypes.Basic](originalMessage, KEY); const encryptedData = packers[MessageTypes.Basic](originalMessage, KEY);
// Extract just the data portion (skip the 4-byte header) // Extract just the data portion (skip the 4-byte header)