From d06ad53ece71e563b1f33d58288880affd478d8c Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 21 Nov 2018 16:46:04 -0500 Subject: [PATCH] refactor(@embark/debugger): initialize default values in private variables instead of constructor --- src/lib/modules/debugger/debugger_manager.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/lib/modules/debugger/debugger_manager.ts b/src/lib/modules/debugger/debugger_manager.ts index 556f900d8..b47df63b4 100644 --- a/src/lib/modules/debugger/debugger_manager.ts +++ b/src/lib/modules/debugger/debugger_manager.ts @@ -4,15 +4,12 @@ const async = require("async"); export default class DebuggerManager { private nodeUrl: string; - private outputJson: any; - private inputJson: any; - private isDebugging: boolean; + private outputJson: any = {}; + private inputJson: any = {}; + private isDebugging: boolean = false; constructor(nodeUrl: string) { this.nodeUrl = nodeUrl; - this.outputJson = {}; - this.inputJson = {}; - this.isDebugging = false; } public setInputJson(inputJson: any) {