mirror of
https://github.com/actions/setup-node.git
synced 2025-12-17 02:31:38 +08:00
Code review
This commit is contained in:
2
dist/cache-save/index.js
vendored
2
dist/cache-save/index.js
vendored
@@ -83348,7 +83348,7 @@ function getNodeVersionFromFile(versionFilePath) {
|
||||
try {
|
||||
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 ((_a = manifest.volta) === null || _a === void 0 ? void 0 : _a.node) {
|
||||
|
||||
Reference in New Issue
Block a user