chore: improve run-clang-tidy.ts behavior when filenames < jobs (#34736)

This commit is contained in:
David Sanders
2022-07-11 03:25:39 -07:00
committed by GitHub
parent fa8e4a7610
commit 2b862c18ba

View File

@@ -173,7 +173,7 @@ async function runClangTidy (
const worker = async () => {
let filenames = chunkedFilenames.shift();
while (filenames) {
while (filenames?.length) {
results.push(
await spawnAsync(cmd, [...args, ...filenames], {}).then((result) => {
console.log(result.stdout);