Skip to content

Commit

Permalink
Merge pull request #529 from kellyselden/remove_unused_code
Browse files Browse the repository at this point in the history
refactor: remove unused code
  • Loading branch information
kellyselden authored Feb 21, 2025
2 parents 56b33b9 + 062967f commit 0e03cd2
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/releasable.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,10 @@ async function _getChangedReleasableFiles({

let changedPublishedFilesOld = new Set(changedPublishedFiles);

let changedPublishedFilesNew = new Set();

for (let file of changedFiles) {
if (changedPublishedFilesOld.has(file)) {
changedPublishedFilesNew.add(file);
}

let changedPublishedFilesNew = changedPublishedFilesOld
// these files may not show up in the bundle, but
// contribute to what goes in the bundle, so we must preserve
// the changed status to know if the package is invalidated or not
if (filesContributingToReleasability.has(file)) {
changedPublishedFilesNew.add(file);
}
}

changedPublishedFilesNew = changedPublishedFilesOld
.union(filesContributingToReleasability)
.intersect(changedFiles);

Expand Down

0 comments on commit 0e03cd2

Please sign in to comment.