This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-common.git


The following commit(s) were added to refs/heads/master by this push:
     new b3362eb  refactor: renamed variable (#194)
b3362eb is described below

commit b3362eb5f5566f762dd2a1d57102627c35241f76
Author: エリス <[email protected]>
AuthorDate: Thu Jan 12 22:41:31 2023 +0900

    refactor: renamed variable (#194)
---
 src/util/xml-helpers.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/util/xml-helpers.js b/src/util/xml-helpers.js
index d821a9f..4b0f19b 100644
--- a/src/util/xml-helpers.js
+++ b/src/util/xml-helpers.js
@@ -256,7 +256,7 @@ function findInsertIdx (children, after) {
     return foundIndex === undefined ? 0 : foundIndex + 1;
 }
 
-const BLACKLIST = ['platform', 'feature', 'plugin', 'engine'];
+const DENIED_TAGS = ['platform', 'feature', 'plugin', 'engine'];
 const SINGLETONS = ['content', 'author', 'name'];
 
 /**
@@ -266,8 +266,8 @@ const SINGLETONS = ['content', 'author', 'name'];
  * @param {boolean} clobber
  */
 function mergeXml (src, dest, platform, clobber) {
-    // Do nothing for blacklisted tags.
-    if (BLACKLIST.includes(String(src.tag))) return;
+    // Do nothing for denied tags.
+    if (DENIED_TAGS.includes(String(src.tag))) return;
 
     // Handle attributes
     const omitAttrs = new Set(clobber ? [] : dest.keys());
@@ -298,7 +298,7 @@ function mergeXml (src, dest, platform, clobber) {
         let destChild;
         let shouldMerge = true;
 
-        if (BLACKLIST.includes(srcTag)) return;
+        if (DENIED_TAGS.includes(srcTag)) return;
 
         if (SINGLETONS.includes(srcTag)) {
             destChild = dest.find(query);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to