Skip to content

Commit

Permalink
Slightly improve ipc presence check
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Aug 13, 2024
1 parent cdfeead commit 14b318a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class Command implements CommandInfo {
* or rejects if it fails to deliver the message.
*/
send(message: object, handle?: SendHandle, options?: MessageOptions): Promise<void> {
if (!this.ipc) {
if (this.ipc == null) {
throw new Error('Command IPC is disabled');
}
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 14b318a

Please sign in to comment.