style(typescript): fix prettier formatting in tsExtractFunctionName

Single line-length fix in `gitnexus/src/core/ingestion/languages/typescript.ts`
flagged by `quality / format` CI on commit ef96603f. The unformatted block came
from the merge of upstream PR #1179 (`fix/issue-1166-calls-edges`) where the
`pair`-with-arrow / `pair`-with-string-key handling was added; prettier wanted
the `.find` callback inlined onto a single line.

No behavior change. Pre-commit hook would have caught this locally if the
husky postinstall step had been able to write `.git/config` on this dev machine.

Made-with: Cursor
This commit is contained in:
ReidenXerx 2026-04-30 14:50:56 +03:00
parent ef96603fed
commit ca3d520293

View file

@ -105,9 +105,7 @@ const tsExtractFunctionName = (
}
if (keyNode.type === 'string') {
// `"add-item": () => ...` — the literal text inside the quotes.
const fragment = keyNode.children?.find(
(c: SyntaxNode) => c.type === 'string_fragment',
);
const fragment = keyNode.children?.find((c: SyntaxNode) => c.type === 'string_fragment');
const text = fragment?.text ?? null;
return { funcName: text, label: 'Function' };
}