Skip to content

Commit

Permalink
CI: Don't report lint error when testCases is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed May 10, 2024
1 parent d0e7827 commit c460110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/eslint-plugin-zotero-translator/lib/rules/test-cases.js
Expand Up @@ -55,8 +55,8 @@ module.exports = {
});
}

const nodes = declaration.declarations[0].init.elements || [];
if (!nodes.length) {
const nodes = declaration.declarations[0].init.elements;
if (!Array.isArray(nodes)) {
context.report({
node: declaration,
message: 'testCases must be an array',
Expand Down

0 comments on commit c460110

Please sign in to comment.