mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-09 22:33:39 +00:00
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:
parent
ef96603fed
commit
ca3d520293
1 changed files with 1 additions and 3 deletions
|
|
@ -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' };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue