Skip to content

Commit

Permalink
fix: false positive sources warning
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Sep 20, 2024
1 parent 7352c89 commit 624a8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default defineNuxtModule<ModuleOptions>({
}

switch (true) {
case config?.sources?.length !== 0:
case (config?.sources?.length || 0) > 0:
warnForIgnoredKey('sources')
break
case config?.includeAppSources !== undefined:
Expand Down

0 comments on commit 624a8c3

Please sign in to comment.