fix: remove unnecessary optional chaining on non-null decl in findFuncDeclarator

Agent-Logs-Url: https://github.com/abhigyanpatwari/GitNexus/sessions/9b012c35-7494-4180-8c6a-b83da8d8abb9

Co-authored-by: magyargergo <11230420+magyargergo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-10 17:02:24 +00:00 committed by GitHub
parent bc7a9c3426
commit 0e987fc082
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -90,6 +90,6 @@ function findFuncDeclarator(node: SyntaxNode): SyntaxNode | null {
if (next === null) break;
decl = next;
}
if (decl?.type === 'function_declarator') return decl;
if (decl.type === 'function_declarator') return decl;
return null;
}