Skip to content

Commit 8e00b3d

Browse files
committed
Fix CoPilot complaints
1 parent e12ddaf commit 8e00b3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/hooks/hidRpc.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)