mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-23 00:41:36 +00:00
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:
parent
bc7a9c3426
commit
0e987fc082
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue