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 * @param {Options} options pingParent: true by default
*/ */
constructor(argOptions = {}) { constructor(options = {}) {
const defaultOptions = {pingParent: true} this.options = Object.assign({pingParent: true}, options);
const options = {...defaultOptions, ...argOptions};
this.interceptLogs(); this.interceptLogs();
this.events = new Events(); this.events = new Events();
if(options.pingParent) { if(this.options.pingParent) {
this.pingParent(); this.pingParent();
} }
} }