Skip to content

Commit

Permalink
fix issues for ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
Cully Wakelin committed Feb 1, 2024
1 parent e615e1b commit b8bde35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class Sync {
const pattern = origin.files.pattern;
const filePaths = glob.sync(pattern).map((f) => ({
name: basename(f), directory: dirname(f),
}))
}));
repositories.push({
type: 'local',
owner: origin.files.owner,
Expand Down Expand Up @@ -285,13 +285,13 @@ class Sync {
const snippets = [];
this.progress.updateOperation("extracting snippets");
await Promise.all(
repositories.map(async ({ type, owner, repo, ref, filePaths }) => {
repositories.map(async ({ RepoType, owner, repo, ref, filePaths }) => {
this.progress.updateTotal(filePaths.length);
const extractRootPath = join(rootDir, extractionDir);
for (const item of filePaths) {
const ext = determineExtension(item.name);
let itemPath = join(item.directory, item.name);
if (!(type === "local")) {
if (!(RepoType === "local")) {
itemPath = join(extractRootPath, itemPath);
}
let capture = false;
Expand Down

0 comments on commit b8bde35

Please sign in to comment.