summaryrefslogtreecommitdiff
path: root/tools/util.js
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-06-07 22:29:47 -0400
committerGitHub <noreply@github.com>2021-06-07 22:29:47 -0400
commit6ee983b12741d2c38b7d2babb88f5ace317dc4b4 (patch)
treeb5f7fecc0241bc9dfe24c693ad7284251954e5b0 /tools/util.js
parent8e96961f0e0c91a6acf73a35e03dda826108e152 (diff)
chore(tools): Fix stdout buffer of launched process getting full causing tools/lint.js to hang on Windows (#10888)
Also fix Windows only clippy issues.
Diffstat (limited to 'tools/util.js')
-rw-r--r--tools/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/util.js b/tools/util.js
index 98ccc77ce..cd9e30314 100644
--- a/tools/util.js
+++ b/tools/util.js
@@ -17,12 +17,12 @@ async function getFilesFromGit(baseDir, cmd) {
cmd,
stdout: "piped",
});
+ const output = new TextDecoder().decode(await p.output());
const { success } = await p.status();
if (!success) {
throw new Error("gitLsFiles failed");
}
- const output = new TextDecoder().decode(await p.output());
p.close();
const files = output.split("\0").filter((line) => line.length > 0).map(