Skip to content

Commit fea863d

Browse files
trevnorrissantigimeno
authored andcommitted
lib: fix lint issues
1 parent 21459cb commit fea863d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/modules/package_json_reader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
158158
}
159159
}
160160
cache.set(jsonPath, result);
161-
if (result.name !== undefined)
161+
if (result.name !== undefined) {
162162
addPackage(jsonPath.slice(0, -12), result, true);
163+
}
163164
return result;
164165
}
165166

0 commit comments

Comments
 (0)