From e9d7942e5e3d9001a3729ea68ba5850f1da653d2 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 13 Oct 2025 19:41:59 -0500 Subject: [PATCH] Remove unnecessary new Set calls --- src/lib/git.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/git.ts b/src/lib/git.ts index 87b40445..de6bcd7a 100644 --- a/src/lib/git.ts +++ b/src/lib/git.ts @@ -963,9 +963,9 @@ export class Git { } // Collect valid clone URLs from the repo event tags - const cloneUrls = new Set(getCloneURLs(repo)); + const cloneUrls = getCloneURLs(repo); - if (cloneUrls.size === 0) { + if (cloneUrls.length === 0) { throw new Error('No valid clone URLs found in repository announcement'); } @@ -1493,9 +1493,9 @@ export class Git { private async fetchFromGitRemotes(repo: NostrEvent, dir: string): Promise<{ fetchHead?: string; fetchHeadDescription?: string }> { // Get clone URLs from the repository announcement - const cloneUrls = new Set(getCloneURLs(repo)); + const cloneUrls = getCloneURLs(repo); - if (cloneUrls.size === 0) { + if (cloneUrls.length === 0) { throw new Error('No Git clone URLs available for fetching'); }