chore: improve run-clang-tidy.ts behavior when filenames < jobs (#34736)
This commit is contained in:
parent
fa8e4a7610
commit
2b862c18ba
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ async function runClangTidy (
|
||||||
const worker = async () => {
|
const worker = async () => {
|
||||||
let filenames = chunkedFilenames.shift();
|
let filenames = chunkedFilenames.shift();
|
||||||
|
|
||||||
while (filenames) {
|
while (filenames?.length) {
|
||||||
results.push(
|
results.push(
|
||||||
await spawnAsync(cmd, [...args, ...filenames], {}).then((result) => {
|
await spawnAsync(cmd, [...args, ...filenames], {}).then((result) => {
|
||||||
console.log(result.stdout);
|
console.log(result.stdout);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue