aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/dotnet.ts
diff options
context:
space:
mode:
authorRubén Rincón Blanco <ruben@rinconblanco.es>2022-02-12 02:41:24 +0100
committerGitHub <noreply@github.com>2022-02-12 02:41:24 +0100
commit045c68d1bc8aef10b1800f01f2984e782e33b7c9 (patch)
tree8e18cd80bebb517937c1f7e32e5d1496280976db /lib/compilers/dotnet.ts
parentdb229b94bcebd558fc38047c4322160c769f0249 (diff)
downloadcompiler-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.ts4
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;