From c2575c71fa8f7df3a2155d59a1dbce28e21aa326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 4 Jun 2021 15:34:34 -0400 Subject: [PATCH] exit gracefully when CI does not have available workers --- Gulpfile.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Gulpfile.mjs b/Gulpfile.mjs index 7a5a7e8d5957..eca7de83cc34 100644 --- a/Gulpfile.mjs +++ b/Gulpfile.mjs @@ -250,9 +250,7 @@ async function buildBabel(useWorker, ignore = []) { promises.push(worker.transform(file, dest)); } return Promise.all(promises).finally(() => { - if (useWorker) { - worker.end(); - } + worker.end?.(); }); }