From 43288032410de9a2d21b4c5fc6cf1475fae6af29 Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Wed, 15 Apr 2026 08:09:26 +0100 Subject: [PATCH] style: prettier format sync.ts and sync.test.ts Also removes the stray empty line in the finally block (noted in review). --- gitnexus/src/core/group/sync.ts | 1 - gitnexus/test/unit/group/sync.test.ts | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gitnexus/src/core/group/sync.ts b/gitnexus/src/core/group/sync.ts index 2a64d6e82..cba6087b4 100644 --- a/gitnexus/src/core/group/sync.ts +++ b/gitnexus/src/core/group/sync.ts @@ -153,7 +153,6 @@ export async function syncGroup(config: GroupConfig, opts?: SyncOptions): Promis missingRepos.push(groupPath); } } - } finally { for (const id of [...new Set(openPoolIds)]) { await closeLbug(id).catch(() => {}); diff --git a/gitnexus/test/unit/group/sync.test.ts b/gitnexus/test/unit/group/sync.test.ts index a2d9bca7d..686b62df0 100644 --- a/gitnexus/test/unit/group/sync.test.ts +++ b/gitnexus/test/unit/group/sync.test.ts @@ -3,7 +3,12 @@ import * as fs from 'node:fs'; import * as path from 'node:path'; import * as os from 'node:os'; import { syncGroup, stableRepoPoolId } from '../../../src/core/group/sync.js'; -import type { GroupConfig, StoredContract, RepoHandle, GroupManifestLink } from '../../../src/core/group/types.js'; +import type { + GroupConfig, + StoredContract, + RepoHandle, + GroupManifestLink, +} from '../../../src/core/group/types.js'; import type { RegistryEntry } from '../../../src/storage/repo-manager.js'; describe('syncGroup', () => { @@ -220,7 +225,13 @@ describe('syncGroup', () => { repos: { 'app/consumer': 'consumer-repo', 'app/provider': 'provider-repo' }, links, packages: {}, - detect: { http: true, grpc: false, topics: false, shared_libs: false, embedding_fallback: false }, + detect: { + http: true, + grpc: false, + topics: false, + shared_libs: false, + embedding_fallback: false, + }, matching: { bm25_threshold: 0.7, embedding_threshold: 0.65, max_candidates_per_step: 3 }, };