From 79e75e6115ad611c023bf3f8d799c3823c20b1c2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 10 May 2026 18:05:26 +0000 Subject: [PATCH] chore(autofix): apply prettier + eslint fixes via /autofix command --- .../ingestion/scope-resolution/passes/free-call-fallback.ts | 6 +----- gitnexus/test/integration/resolvers/c.test.ts | 4 +--- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/gitnexus/src/core/ingestion/scope-resolution/passes/free-call-fallback.ts b/gitnexus/src/core/ingestion/scope-resolution/passes/free-call-fallback.ts index 35f4d329d..d63c3906a 100644 --- a/gitnexus/src/core/ingestion/scope-resolution/passes/free-call-fallback.ts +++ b/gitnexus/src/core/ingestion/scope-resolution/passes/free-call-fallback.ts @@ -127,11 +127,7 @@ function pickUniqueGlobalCallable( if (def.type !== 'Function' && def.type !== 'Method' && def.type !== 'Constructor') continue; // Skip file-local defs (e.g. C `static` functions) that live in a // different file from the caller — they are logically invisible. - if ( - isFileLocalDef !== undefined && - def.filePath !== callerFilePath && - isFileLocalDef(def) - ) { + if (isFileLocalDef !== undefined && def.filePath !== callerFilePath && isFileLocalDef(def)) { continue; } const key = logicalCallableKey(def); diff --git a/gitnexus/test/integration/resolvers/c.test.ts b/gitnexus/test/integration/resolvers/c.test.ts index cd1bcb773..980764b8c 100644 --- a/gitnexus/test/integration/resolvers/c.test.ts +++ b/gitnexus/test/integration/resolvers/c.test.ts @@ -102,9 +102,7 @@ describe('C static function isolation', () => { // caller.c should NOT have a CALLS edge to a.c's static helper. // Filter edges to only those originating from main → helper to // verify the correct target file. - const mainToHelper = calls.filter( - (r) => r.source === 'main' && r.target === 'helper', - ); + const mainToHelper = calls.filter((r) => r.source === 'main' && r.target === 'helper'); // If a main→helper edge exists, it should point to b.c, not a.c for (const edge of mainToHelper) { expect(edge.targetFilePath).not.toContain('a.c');