Skip to content

Commit ceba916

Browse files
L-Quniclanton
andauthored
Update libraries/rush-lib/src/utilities/HotlinkManager.ts
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
1 parent 6ffc3fc commit ceba916

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libraries/rush-lib/src/utilities/HotlinkManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export class HotlinkManager {
197197
const packageSourcePathSet: Set<string> = new Set();
198198
for (const dirName of subDirectories) {
199199
const parsedDependency: DependencyPath = parse(dirName);
200-
if (parsedDependency && parsedDependency.name === packageName) {
200+
if (parsedDependency?.name === packageName) {
201201
const packageSourcePath: string = `${consumerPackagePnpmDependenciesFolderPath}/${dirName}/${RushConstants.nodeModulesFolderName}/${packageName}`;
202202
const { version } = await JsonFile.loadAsync(`${packageSourcePath}/${FileConstants.PackageJson}`);
203203
if (semver.satisfies(version, versionRange)) {

0 commit comments

Comments
 (0)