Skip to content

Commit

Permalink
[Ref] Be more explicit in a conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
akwodkiewicz committed Sep 9, 2024
1 parent 7a94fda commit fd567c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/no-named-as-default.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
const importedModule = ExportMapBuilder.get(declaration.source.value, context);
if (importedModule == null) { return; }

if (importedModule.errors.length) {
if (importedModule.errors.length > 0) {
importedModule.reportErrors(context, declaration);
return;
}
Expand Down

0 comments on commit fd567c6

Please sign in to comment.