Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: shorten that code a bit
  • Loading branch information
paul-soporan committed Oct 16, 2021
commit 1a2bd3168ce937f37b46dc88ac32d4213bb57e70
7 changes: 2 additions & 5 deletions packages/yarnpkg-core/sources/Project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -833,11 +833,8 @@ export class Project {
allPackages,
});

for (const locatorHash of optionalBuilds) {
if (allResolutionDependencyPackages.has(locatorHash)) {
optionalBuilds.delete(locatorHash);
}
}
for (const locatorHash of allResolutionDependencyPackages)
optionalBuilds.delete(locatorHash);

// All descriptors still referenced within the volatileDescriptors set are
// descriptors that aren't depended upon by anything in the dependency tree.
Expand Down