Skip to content

Commit

Permalink
🐛 Fix missing ref case
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Jul 5, 2021
1 parent 950ff34 commit 9748083
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,10 @@ function runFullASTValidation(
})
);
} else {
if (functions.length > nodeOperation.requiredReferences.length) {
const requiredFunctions = nodeOperation.requiredReferences
? nodeOperation.requiredReferences.length
: 1;
if (functions.length > requiredFunctions) {
errors.push(
getMessageFromId({
messageId: 'tooManyFirstArguments',
Expand Down

0 comments on commit 9748083

Please sign in to comment.