Skip to content

Commit

Permalink
refactor: remove unneeded boolean check
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalsadhu committed Nov 13, 2024
1 parent 8c9ec78 commit e16819c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export class Assets extends EventEmitter {
this.#receivedAssets.set(name, assets);
if (this.allAssetsReceived) {
const assets = Array.from(this.#receivedAssets.values());
this.#js = assets.flatMap(({ js = [] }) => js).filter(Boolean);
this.#css = assets.flatMap(({ css = [] }) => css).filter(Boolean);
this.#js = assets.flatMap(({ js = [] }) => js);
this.#css = assets.flatMap(({ css = [] }) => css);
this.emit('received', { js: this.#js, css: this.#css });
}
}
Expand Down

0 comments on commit e16819c

Please sign in to comment.