Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsManta committed Dec 28, 2023
1 parent 70da331 commit 241a772
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/cache-save/index.js
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion dist/setup/index.js
Expand Up @@ -93795,7 +93795,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) {
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 241a772

Please sign in to comment.