From ab6d931cf29ceec82c6c754a01dbe3ee1ee7a3d6 Mon Sep 17 00:00:00 2001 From: Jack Hadrill Date: Fri, 18 Mar 2022 15:57:40 +0000 Subject: [PATCH] Fix linting errors --- src/messages/userDataRequest.ts | 4 ++-- src/messages/userDataResponse.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/messages/userDataRequest.ts b/src/messages/userDataRequest.ts index 9f5bdc7..6f1a43a 100644 --- a/src/messages/userDataRequest.ts +++ b/src/messages/userDataRequest.ts @@ -1,5 +1,5 @@ import Color from 'color' -import { decrypt, encrypt } from 'romulus-js' +import { encrypt } from 'romulus-js' import { DEFAULT_KEY, MessageTypes } from '../common' import { numberToUint16BE } from '../utilities/number' import { SmartBuffer } from '../utilities/smart-buffer' @@ -67,6 +67,6 @@ export function unpackUserDataRequestMessage (data: Uint8Array): UserDataRequest return { username: decoder.decode(username), colour: Color.rgb(colour), - clientId: decoder.decode(clientId), + clientId: decoder.decode(clientId) } } diff --git a/src/messages/userDataResponse.ts b/src/messages/userDataResponse.ts index 7c037c3..e47896d 100644 --- a/src/messages/userDataResponse.ts +++ b/src/messages/userDataResponse.ts @@ -1,5 +1,5 @@ import Color from 'color' -import { decrypt, encrypt } from 'romulus-js' +import { encrypt } from 'romulus-js' import { DEFAULT_KEY, MessageTypes } from '../common' import { numberToUint16BE } from '../utilities/number' import { SmartBuffer } from '../utilities/smart-buffer' @@ -66,6 +66,6 @@ export function unpackUserDataResponseMessage (data: Uint8Array): UserDataRespon return { username: decoder.decode(username), colour: Color.rgb(colour), - clientId: decoder.decode(clientId), + clientId: decoder.decode(clientId) } }