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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);