aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/dotnet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/dotnet.ts')
-rw-r--r--lib/compilers/dotnet.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/dotnet.ts b/lib/compilers/dotnet.ts
index 5b1af77fc..cd7700725 100644
--- a/lib/compilers/dotnet.ts
+++ b/lib/compilers/dotnet.ts
@@ -274,7 +274,7 @@ class DotNetCompiler extends BaseCompiler {
...this.getEmptyExecutionResult(),
stdout: err.stdout ? utils.parseOutput(err.stdout) : [],
stderr: err.stderr ? utils.parseOutput(err.stderr) : [],
- code: err.code !== undefined ? err.code : -1,
+ code: err.code === undefined ? -1 : err.code,
};
}
}