mirror of
https://github.com/actions/setup-node.git
synced 2026-06-26 15:30:38 +00:00
Code review
This commit is contained in:
parent
70da331cd2
commit
d87fa93af3
@ -18,7 +18,7 @@ export function getNodeVersionFromFile(versionFilePath: string): string | null {
|
|||||||
const manifest = JSON.parse(contents);
|
const manifest = JSON.parse(contents);
|
||||||
|
|
||||||
// Presume package.json file.
|
// Presume package.json file.
|
||||||
if (typeof manifest === 'object' && manifest !== null) {
|
if (typeof manifest === 'object' && !!manifest) {
|
||||||
// Support Volta.
|
// Support Volta.
|
||||||
// See https://docs.volta.sh/guide/understanding#managing-your-project
|
// See https://docs.volta.sh/guide/understanding#managing-your-project
|
||||||
if (manifest.volta?.node) {
|
if (manifest.volta?.node) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user