Fix linting errors
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jack Hadrill 2022-03-18 15:57:40 +00:00
parent be39f7bae1
commit ab6d931cf2
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
import Color from 'color' import Color from 'color'
import { decrypt, encrypt } from 'romulus-js' import { encrypt } from 'romulus-js'
import { DEFAULT_KEY, MessageTypes } from '../common' import { DEFAULT_KEY, MessageTypes } from '../common'
import { numberToUint16BE } from '../utilities/number' import { numberToUint16BE } from '../utilities/number'
import { SmartBuffer } from '../utilities/smart-buffer' import { SmartBuffer } from '../utilities/smart-buffer'
@ -67,6 +67,6 @@ export function unpackUserDataRequestMessage (data: Uint8Array): UserDataRequest
return { return {
username: decoder.decode(username), username: decoder.decode(username),
colour: Color.rgb(colour), colour: Color.rgb(colour),
clientId: decoder.decode(clientId), clientId: decoder.decode(clientId)
} }
} }

View File

@ -1,5 +1,5 @@
import Color from 'color' import Color from 'color'
import { decrypt, encrypt } from 'romulus-js' import { encrypt } from 'romulus-js'
import { DEFAULT_KEY, MessageTypes } from '../common' import { DEFAULT_KEY, MessageTypes } from '../common'
import { numberToUint16BE } from '../utilities/number' import { numberToUint16BE } from '../utilities/number'
import { SmartBuffer } from '../utilities/smart-buffer' import { SmartBuffer } from '../utilities/smart-buffer'
@ -66,6 +66,6 @@ export function unpackUserDataResponseMessage (data: Uint8Array): UserDataRespon
return { return {
username: decoder.decode(username), username: decoder.decode(username),
colour: Color.rgb(colour), colour: Color.rgb(colour),
clientId: decoder.decode(clientId), clientId: decoder.decode(clientId)
} }
} }