Skip to content

Commit

Permalink
cleanup(core): use full variable name in git-hasher.ts (#9143)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wscats committed Mar 18, 2022
1 parent 6284eb6 commit bf836f4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/workspace/src/core/hasher/git-hasher.ts
Expand Up @@ -67,11 +67,11 @@ function getActualFilesToHash(
): { filesToHash: string[]; deleted: string[] } {
const filesToHash = [];
const deleted = [];
for (let f of potentialFilesToHash) {
if (fileExists(joinPathFragments(path, f))) {
filesToHash.push(f);
for (let file of potentialFilesToHash) {
if (fileExists(joinPathFragments(path, file))) {
filesToHash.push(file);
} else {
deleted.push(f);
deleted.push(file);
}
}
return { filesToHash, deleted };
Expand All @@ -83,11 +83,11 @@ async function spawnProcess(command: string, args: string[], cwd: string) {
shell: false,
cwd,
});
let s = '';
let stdout = '';
for await (const data of cp.stdout) {
s += data;
stdout += data;
}
return s;
return stdout;
}

async function getStagedFiles(path: string) {
Expand Down

0 comments on commit bf836f4

Please sign in to comment.