Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hal-9k1 committed Oct 18, 2024
1 parent b536c45 commit c9d1a20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 8 additions & 2 deletions src/main/MainApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,14 @@ export default class MainApp implements MenuHandler, RuntimeCommsListener {
this.#preventQuit = false;
this.#mainWindow.close();
});
addRendererListener('main-update-robot-mode', this.#runtimeComms.sendRunMode.bind(this.#runtimeComms));
addRendererListener('main-robot-input', this.#runtimeComms.sendInputs.bind(this.#runtimeComms));
addRendererListener(
'main-update-robot-mode',
this.#runtimeComms.sendRunMode.bind(this.#runtimeComms),
);
addRendererListener(
'main-robot-input',
this.#runtimeComms.sendInputs.bind(this.#runtimeComms),

Check failure on line 218 in src/main/MainApp.ts

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

No overload matches this call.
);

try {
this.#config = coerceToConfig(
Expand Down
4 changes: 1 addition & 3 deletions src/main/network/RuntimeComms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ export default class RuntimeComms {
// }
// Old Dawn sends inputs through TCP, though comments say this is just for 2021?
if (this.#tcpSock) {
this.#tcpSock.write(
this.#createPacket(MsgType.INPUTS, { inputs }),
);
this.#tcpSock.write(this.#createPacket(MsgType.INPUTS, { inputs }));
}
}

Expand Down

0 comments on commit c9d1a20

Please sign in to comment.