File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83348,7 +83348,7 @@ function getNodeVersionFromFile(versionFilePath) {
83348
83348
try {
83349
83349
const manifest = JSON.parse(contents);
83350
83350
// Presume package.json file.
83351
- if (typeof manifest === 'object' && manifest !== null ) {
83351
+ if (typeof manifest === 'object' && !!manifest ) {
83352
83352
// Support Volta.
83353
83353
// See https://docs.volta.sh/guide/understanding#managing-your-project
83354
83354
if ((_a = manifest.volta) === null || _a === void 0 ? void 0 : _a.node) {
Original file line number Diff line number Diff line change @@ -93795,7 +93795,7 @@ function getNodeVersionFromFile(versionFilePath) {
93795
93795
try {
93796
93796
const manifest = JSON.parse(contents);
93797
93797
// Presume package.json file.
93798
- if (typeof manifest === 'object' && manifest !== null ) {
93798
+ if (typeof manifest === 'object' && !!manifest ) {
93799
93799
// Support Volta.
93800
93800
// See https://docs.volta.sh/guide/understanding#managing-your-project
93801
93801
if ((_a = manifest.volta) === null || _a === void 0 ? void 0 : _a.node) {
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export function getNodeVersionFromFile(versionFilePath: string): string | null {
18
18
const manifest = JSON . parse ( contents ) ;
19
19
20
20
// Presume package.json file.
21
- if ( typeof manifest === 'object' && manifest !== null ) {
21
+ if ( typeof manifest === 'object' && ! ! manifest ) {
22
22
// Support Volta.
23
23
// See https://docs.volta.sh/guide/understanding#managing-your-project
24
24
if ( manifest . volta ?. node ) {
You can’t perform that action at this time.
0 commit comments