aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/golang.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/golang.ts')
-rw-r--r--lib/compilers/golang.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compilers/golang.ts b/lib/compilers/golang.ts
index 00ef80d6c..b1de66884 100644
--- a/lib/compilers/golang.ts
+++ b/lib/compilers/golang.ts
@@ -57,9 +57,9 @@ export class GolangCompiler extends BaseCompiler {
constructor(compilerInfo, env) {
super(compilerInfo, env);
- const goroot = this.compilerProps(`compiler.${this.compiler.id}.goroot`);
- const goarch = this.compilerProps(`compiler.${this.compiler.id}.goarch`);
- const goos = this.compilerProps(`compiler.${this.compiler.id}.goos`);
+ const goroot = this.compilerProps<string | undefined>(`compiler.${this.compiler.id}.goroot`);
+ const goarch = this.compilerProps<string | undefined>(`compiler.${this.compiler.id}.goarch`);
+ const goos = this.compilerProps<string | undefined>(`compiler.${this.compiler.id}.goos`);
this.GOENV = {};
if (goroot) {