JS: Fix some Ql4Ql violations.

This commit is contained in:
Michael Nebel
2025-09-01 15:17:53 +02:00
parent b4d6cb6e5f
commit 8b10ad49d7
17 changed files with 49 additions and 49 deletions

View File

@@ -46,9 +46,7 @@ string getKind(MemberDeclaration m) {
* A call-signature that originates from a MethodSignature in the AST.
*/
private class MethodCallSig extends Function {
private MethodSignature signature;
MethodCallSig() { this = signature.getBody() }
MethodCallSig() { this = any(MethodSignature signature).getBody() }
int getNumOptionalParameter() {
result = count(Parameter p | p = this.getParameter(_) and p.isDeclaredOptional())