Remove unnecessary new Set calls

This commit is contained in:
Alex Gleason committed 2025-10-13 19:41:59 -05:00
1 parent 3cd6908d78
commit e9d7942e5e
1 file changed
+4 -4
+4 -4
View File
@@ -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');
}