Skip to content

Commit

Permalink
Sync CI with official repository
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 1, 2024
1 parent e3a4fc6 commit 6f4e963
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
Original file line number Diff line number Diff line change
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 6f4e963

Please sign in to comment.