Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
rachfop committed May 2, 2024
1 parent 48d3c5a commit 8535c2a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,7 @@ class Sync {
this.progress.updateTotal(filePaths.length);
const extractRootPath = join(rootDir, extractionDir);
for (const item of filePaths) {
if (fileSnips.length > 0) {
this.usedRepos.add(`${owner}/${repo}`);
}

const ext = determineExtension(item.name);
let itemPath = join(item.directory, item.name);
if (rtype == "remote") {
Expand All @@ -313,6 +311,9 @@ class Sync {
const snip = new Snippet(id, ext, owner, repo, ref, item);
fileSnips.push(snip);
}
if (fileSnips.length > 0) {
this.usedRepos.add(`${owner}/${repo}`);
}
});
snippets.push(...fileSnips);
this.progress.increment();
Expand Down

0 comments on commit 8535c2a

Please sign in to comment.