Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
agonyz committed Jul 15, 2023
1 parent 596feb5 commit 65180f6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/services/bundle.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ export class BundleService {
skip.split(',').map((bundle) => bundle.trim())
);

packages.packageNames = packages.packageNames
.filter((bundle) => {
const bundleName = bundle.replace(vendor + '/', '');
return !bundlesToSkip.has(bundleName);
})
.map((bundle) => vendor + '/' + bundle.replace(vendor + '/', ''));
packages.packageNames = packages.packageNames.filter((bundle) => {
const bundleName = bundle.replace(vendor + '/', '');
return !bundlesToSkip.has(bundleName);
});

if (packages.packageNames.length <= 0) {
return null;
Expand Down

0 comments on commit 65180f6

Please sign in to comment.