From 816a35dbaf6e5bbd6f0b58a15dac2f9a75f14fac Mon Sep 17 00:00:00 2001 From: Carlo Dapor Date: Tue, 30 Aug 2016 11:54:35 +0200 Subject: [PATCH 1/2] Make gitInit, linkCli, npmInstall and bowerInstall explicit of type any. --- addon/ng2/commands/init.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/addon/ng2/commands/init.ts b/addon/ng2/commands/init.ts index a3252a73d984..0621d8d799aa 100644 --- a/addon/ng2/commands/init.ts +++ b/addon/ng2/commands/init.ts @@ -55,7 +55,8 @@ const InitCommand: any = Command.extend({ // needs an explicit check in case it's just 'undefined' // due to passing of options from 'new' and 'addon' - let gitInit; + debugger; + let gitInit: any; if (commandOptions.skipGit === false) { gitInit = new GitInit({ ui: this.ui, @@ -63,7 +64,7 @@ const InitCommand: any = Command.extend({ }); } - let linkCli; + let linkCli: any; if (commandOptions.linkCli) { linkCli = new LinkCli({ ui: this.ui, @@ -72,7 +73,7 @@ const InitCommand: any = Command.extend({ }); } - let npmInstall; + let npmInstall: any; if (!commandOptions.skipNpm) { npmInstall = new NpmInstall({ ui: this.ui, @@ -81,7 +82,7 @@ const InitCommand: any = Command.extend({ }); } - let bowerInstall; + let bowerInstall: any; if (!commandOptions.skipBower) { bowerInstall = new this.tasks.BowerInstall({ ui: this.ui, From 4d16642cc97d9816cb85cc22698facb937814802 Mon Sep 17 00:00:00 2001 From: Carlo Dapor Date: Tue, 30 Aug 2016 12:00:25 +0200 Subject: [PATCH 2/2] Removed debugger; statement, was left there my accident. --- addon/ng2/commands/init.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/addon/ng2/commands/init.ts b/addon/ng2/commands/init.ts index 0621d8d799aa..d56c2e0f739f 100644 --- a/addon/ng2/commands/init.ts +++ b/addon/ng2/commands/init.ts @@ -55,7 +55,6 @@ const InitCommand: any = Command.extend({ // needs an explicit check in case it's just 'undefined' // due to passing of options from 'new' and 'addon' - debugger; let gitInit: any; if (commandOptions.skipGit === false) { gitInit = new GitInit({