fix whitespace reformat and missing ;

This commit is contained in:
plukevdh 2023-05-19 15:32:26 -04:00
parent fc952ad45a
commit c401b8cb9d
No known key found for this signature in database
GPG key ID: 4CDF66F8A7057826
2 changed files with 64 additions and 65 deletions

View file

@ -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;