From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:26:15 +0800
Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改

---
 PAMapp/node_modules/jest-changed-files/build/hg.js |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/PAMapp/node_modules/jest-changed-files/build/hg.js b/PAMapp/node_modules/jest-changed-files/build/hg.js
index 26442e3..9277b8d 100644
--- a/PAMapp/node_modules/jest-changed-files/build/hg.js
+++ b/PAMapp/node_modules/jest-changed-files/build/hg.js
@@ -81,14 +81,20 @@
 const env = {...process.env, HGPLAIN: '1'};
 const adapter = {
   findChangedFiles: async (cwd, options) => {
-    const includePaths = (options && options.includePaths) || [];
+    var _options$includePaths;
+
+    const includePaths =
+      (_options$includePaths = options.includePaths) !== null &&
+      _options$includePaths !== void 0
+        ? _options$includePaths
+        : [];
     const args = ['status', '-amnu'];
 
-    if (options && options.withAncestor) {
-      args.push('--rev', `min((!public() & ::.)+.)^`);
-    } else if (options && options.changedSince) {
+    if (options.withAncestor) {
+      args.push('--rev', 'min((!public() & ::.)+.)^');
+    } else if (options.changedSince) {
       args.push('--rev', `ancestor(., ${options.changedSince})`);
-    } else if (options && options.lastCommit === true) {
+    } else if (options.lastCommit === true) {
       args.push('--change', '.');
     }
 

--
Gitblit v1.8.0