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

style95 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new f59a45e07 Check whether variable is undefined and make it efficient 
(#5508)
f59a45e07 is described below

commit f59a45e07c0b500ac340b127e27c541f616e4b27
Author: Seongbae Chang <[email protected]>
AuthorDate: Sat Aug 30 07:40:57 2025 +0900

    Check whether variable is undefined and make it efficient (#5508)
---
 ansible/files/whisks_design_document_for_entities_db_v2.1.0.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ansible/files/whisks_design_document_for_entities_db_v2.1.0.json 
b/ansible/files/whisks_design_document_for_entities_db_v2.1.0.json
index 34d52f8f0..ac458031e 100644
--- a/ansible/files/whisks_design_document_for_entities_db_v2.1.0.json
+++ b/ansible/files/whisks_design_document_for_entities_db_v2.1.0.json
@@ -7,7 +7,7 @@
       "reduce": "_count"
     },
     "packages-public": {
-      "map": "function (doc) {\n  var isPublicPackage = function(doc) { \n    
return Object.keys(doc.binding).length == 0 && doc.publish;\n  }\n  if 
(isPublicPackage(doc)) try {\n    var value = {\n      namespace: 
doc.namespace,\n      name: doc.name,\n      version: doc.version,\n      
publish: doc.publish,\n      annotations: doc.annotations,\n      updated: 
doc.updated,\n      binding: false\n    };\n    emit([doc.namespace, 
doc.updated], value);\n  } catch (e) {}\n}",
+      "map": "function (doc) {\n  var isPublicPackage = function(doc) { \n    
return doc.binding && doc.publish && Object.keys(doc.binding).length == 0;\n  
}\n  if (isPublicPackage(doc)) try {\n    var value = {\n      namespace: 
doc.namespace,\n      name: doc.name,\n      version: doc.version,\n      
publish: doc.publish,\n      annotations: doc.annotations,\n      updated: 
doc.updated,\n      binding: false\n    };\n    emit([doc.namespace, 
doc.updated], value);\n  } catch (e) {}\n}",
       "reduce": "_count"
     },
     "packages": {

Reply via email to