please linter

This commit is contained in:
Anthony Laibe 2018-09-14 10:30:20 +01:00
parent ab859d4ef5
commit 2c30271d29
1 changed files with 3 additions and 4 deletions

View File

@ -14,12 +14,11 @@ class ProcessWrapper {
*
* @param {Options} options pingParent: true by default
*/
constructor(argOptions = {}) {
const defaultOptions = {pingParent: true}
const options = {...defaultOptions, ...argOptions};
constructor(options = {}) {
this.options = Object.assign({pingParent: true}, options);
this.interceptLogs();
this.events = new Events();
if(options.pingParent) {
if(this.options.pingParent) {
this.pingParent();
}
}