mirror of
https://github.com/actions/setup-go.git
synced 2025-09-08 11:13:38 -06:00
fix whitespace reformat and missing ;
This commit is contained in:
parent
fc952ad45a
commit
c401b8cb9d
2 changed files with 64 additions and 65 deletions
|
@ -160,19 +160,19 @@ function resolveVersionInput(): string {
|
|||
if(toolVersionsPath && !fs.existsSync(toolVersionsPath)) {
|
||||
throw new Error(
|
||||
`The specified .tool-versions file at ${toolVersionsPath} does not exist`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (!toolVersionsPath) {
|
||||
toolVersionsPath = '.tool-versions'
|
||||
toolVersionsPath = '.tool-versions';
|
||||
if(!fs.existsSync(toolVersionsPath)) {
|
||||
throw new Error(
|
||||
`No .tool-versions file was found in the project path. Please specify using tool-versions-file`
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
version = installer.parseToolVersionsFile(toolVersionsPath)
|
||||
version = installer.parseToolVersionsFile(toolVersionsPath);
|
||||
}
|
||||
|
||||
return version;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue