Fix linting errors
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
be39f7bae1
commit
ab6d931cf2
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue