diff options
author | Rubén Rincón Blanco <ruben@rinconblanco.es> | 2022-02-12 02:41:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 02:41:24 +0100 |
commit | 045c68d1bc8aef10b1800f01f2984e782e33b7c9 (patch) | |
tree | 8e18cd80bebb517937c1f7e32e5d1496280976db /lib/compilers/dotnet.ts | |
parent | db229b94bcebd558fc38047c4322160c769f0249 (diff) | |
download | compiler-explorer-045c68d1bc8aef10b1800f01f2984e782e33b7c9.tar.gz compiler-explorer-045c68d1bc8aef10b1800f01f2984e782e33b7c9.zip |
Add strict tsc flag for the backend ts code (#3355)gh-1950
Diffstat (limited to 'lib/compilers/dotnet.ts')
-rw-r--r-- | lib/compilers/dotnet.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/dotnet.ts b/lib/compilers/dotnet.ts index e3225a2ab..40481441f 100644 --- a/lib/compilers/dotnet.ts +++ b/lib/compilers/dotnet.ts @@ -115,7 +115,7 @@ class DotNetCompiler extends BaseCompiler { execOptions.customCwd = programDir; await fs.writeFile(projectFilePath, projectFileContent); - let crossgen2Options = []; + const crossgen2Options: string[] = []; const configurableOptions = this.configurableOptions; for (const configurableOption of configurableOptions) { @@ -123,7 +123,7 @@ class DotNetCompiler extends BaseCompiler { if (optionIndex === -1 || optionIndex === options.length - 1) { continue; } - crossgen2Options = crossgen2Options.concat([options[optionIndex], options[optionIndex + 1]]); + crossgen2Options.push(options[optionIndex], options[optionIndex + 1]); } const configurableSwitches = this.configurableSwitches; |