File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -386,7 +386,7 @@ export class CancelKeyboardMacroReportMessage extends RpcMessage {
386386
387387 constructor ( token : string ) {
388388 super ( HID_RPC_MESSAGE_TYPES . CancelKeyboardMacroReport ) ;
389- this . token = ( token == null || token === undefined || token === "" )
389+ this . token = ( token == null || token === "" )
390390 ? "00000000-0000-0000-0000-000000000000"
391391 : token ;
392392 }
@@ -397,11 +397,11 @@ export class CancelKeyboardMacroReportMessage extends RpcMessage {
397397 }
398398
399399 public static unmarshal ( data : Uint8Array ) : CancelKeyboardMacroReportMessage | undefined {
400- if ( data . length == 0 ) {
400+ if ( data . length === 0 ) {
401401 return new CancelKeyboardMacroReportMessage ( "00000000-0000-0000-0000-000000000000" ) ;
402402 }
403403
404- if ( data . length != 16 ) {
404+ if ( data . length !== 16 ) {
405405 throw new Error ( `Invalid cancel message length: ${ data . length } ` ) ;
406406 }
407407
You can’t perform that action at this time.
0 commit comments