mirror of https://github.com/embarklabs/embark.git
use existing process send to avoid the extra if
This commit is contained in:
parent
2c2540417c
commit
ab20b10d5d
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue