mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: improve run-clang-tidy.ts behavior when filenames < jobs (#34736)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user