Skip to content

Commit

Permalink
chore: improve run-clang-tidy.ts behavior when filenames < jobs (elec…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored and schetle committed Aug 18, 2022
1 parent 061e2d1 commit e6e4ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/run-clang-tidy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e6e4ae4

Please sign in to comment.