Browse Source

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

David Sanders 2 years ago
parent
commit
2b862c18ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/run-clang-tidy.ts

+ 1 - 1
script/run-clang-tidy.ts

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