Skip to content

Commit

Permalink
Fix early return
Browse files Browse the repository at this point in the history
  • Loading branch information
myovchev committed Nov 19, 2024
1 parent a418765 commit 8cb38bb
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 8cb38bb

Please sign in to comment.