Skip to content

Commit

Permalink
Fix early return (#4808)
Browse files Browse the repository at this point in the history
  • Loading branch information
myovchev authored Nov 20, 2024
1 parent b1f1ef4 commit eecfd55
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/@apostrophecms/asset/lib/build/internals.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,6 @@ module.exports = (self) => {
const {
imports = [], assets = [], dynamicImports = []
} = files;
if (!imports.length) {
continue;
}

for (const file of [ ...imports, ...dynamicImports, ...assets ]) {
if (seen[file]) {
Expand Down

0 comments on commit eecfd55

Please sign in to comment.