add fix for installer tests

This commit is contained in:
Dmitry Shibanov 2021-11-08 17:19:03 +03:00
parent 8dfead4556
commit d465795688
3 changed files with 48 additions and 22 deletions

View file

@ -92,7 +92,7 @@ function resolveVersionInput(): string {
process.env.GITHUB_WORKSPACE!,
versionFileInput
);
if (fs.existsSync(versionFilePath) === false) {
if (!fs.existsSync(versionFilePath)) {
throw new Error('The specified node version file does not exist');
}
version = installer.parseNodeVersionFile(