Skip to content

Commit 2698fbd

Browse files
committed
Fix CoPilot/Lint complaints
1 parent e12ddaf commit 2698fbd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

internal/hidrpc/hidrpc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ func GetQueueIndex(messageType MessageType) (int, time.Duration) {
5252
return MacroQueue, 60 * time.Second
5353
default:
5454
return OtherQueue, 5 * time.Second
55-
5655
}
5756
}
5857

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)