use existing process send to avoid the extra if

This commit is contained in:
Iuri Matias 2018-06-06 11:09:06 -04:00
parent 2c2540417c
commit ab20b10d5d
1 changed files with 1 additions and 4 deletions

View File

@ -66,10 +66,7 @@ class ProcessWrapper {
if (isHardSource) { if (isHardSource) {
return; return;
} }
if (!process.connected) { this.send({result: constants.process.log, message: messages, type});
return;
}
process.send({result: constants.process.log, message: messages, type});
} }
send() { send() {