Skip to content

Commit 14b318a

Browse files
committed
Slightly improve ipc presence check
1 parent cdfeead commit 14b318a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export class Command implements CommandInfo {
274274
* or rejects if it fails to deliver the message.
275275
*/
276276
send(message: object, handle?: SendHandle, options?: MessageOptions): Promise<void> {
277-
if (!this.ipc) {
277+
if (this.ipc == null) {
278278
throw new Error('Command IPC is disabled');
279279
}
280280
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)