From 8041f89a13161ee59824b3f9095169d3b7759f13 Mon Sep 17 00:00:00 2001 From: Fernando Dodino Date: Thu, 12 Dec 2024 22:30:54 -0300 Subject: [PATCH] Linter fix --- src/validator/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validator/index.ts b/src/validator/index.ts index 32e07b3e..f8e4c44b 100644 --- a/src/validator/index.ts +++ b/src/validator/index.ts @@ -111,7 +111,7 @@ export const methodShouldHaveDifferentSignature = error(node => export const shouldNotOnlyCallToSuper = warning(node => { const callsSuperWithSameArgs = (sentence?: Sentence) => sentence?.is(Super) && sentence.args.every((arg, index) => arg.is(Reference) && arg.target === node.parameters[index]) return isEmpty(node.sentences) || !node.sentences.every(sentence => - callsSuperWithSameArgs(sentence) && node.sentences.length == 1 || sentence.is(Return) && callsSuperWithSameArgs(sentence.value) + callsSuperWithSameArgs(sentence) && node.sentences.length == 1 || sentence.is(Return) && callsSuperWithSameArgs(sentence.value) ) }, undefined, sourceMapForBody)