mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-08 03:08:13 +00:00
chore(autofix): apply prettier + eslint fixes via /autofix command
This commit is contained in:
parent
e28260cf40
commit
79e75e6115
2 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue