From ca3d5202936d4d1ea398c26f8fe9bb44c33d2533 Mon Sep 17 00:00:00 2001 From: ReidenXerx Date: Thu, 30 Apr 2026 14:50:56 +0300 Subject: [PATCH] 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 --- gitnexus/src/core/ingestion/languages/typescript.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gitnexus/src/core/ingestion/languages/typescript.ts b/gitnexus/src/core/ingestion/languages/typescript.ts index 880c00426..e2ec9d23f 100644 --- a/gitnexus/src/core/ingestion/languages/typescript.ts +++ b/gitnexus/src/core/ingestion/languages/typescript.ts @@ -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' }; }