Skip to content

Commit

Permalink
Update packages/preset-icons/src/core.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 8, 2023
1 parent f6e6e34 commit 5dc230a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/preset-icons/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export function createPresetIcons(lookupIconLoader: (options: IconsOptions) => P
export function combineLoaders(loaders: UniversalIconLoader[]) {
return (async (...args) => {
for (const loader of loaders) {
if ( !loader ) continue;
if (!loader)
continue
const result = await loader(...args)
if (result)
return result
Expand Down

0 comments on commit 5dc230a

Please sign in to comment.