Compare commits

...

2 Commits

Author SHA1 Message Date
Manta Anantachai S
a2dc808bbe
Merge d87fa93af3 into b39b52d121 2023-12-28 08:02:19 +00:00
Anantachai Saothong (Manta)
d87fa93af3 Code review 2023-12-28 15:02:08 +07:00

View File

@ -18,7 +18,7 @@ export function getNodeVersionFromFile(versionFilePath: string): string | null {
const manifest = JSON.parse(contents);
// Presume package.json file.
if (typeof manifest === 'object' && manifest !== null) {
if (typeof manifest === 'object' && !!manifest) {
// Support Volta.
// See https://docs.volta.sh/guide/understanding#managing-your-project
if (manifest.volta?.node) {