You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2019/07/26 10:27:01 UTC
[sling-whiteboard] 01/03: Better names
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
commit 379d708cd7dcc7179a2e2b4af91e410a74779879
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Jul 26 11:37:02 2019 +0200
Better names
---
serverless-microsling/lib/openwhisk-renderer.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/serverless-microsling/lib/openwhisk-renderer.js b/serverless-microsling/lib/openwhisk-renderer.js
index f58a32e..199e26d 100644
--- a/serverless-microsling/lib/openwhisk-renderer.js
+++ b/serverless-microsling/lib/openwhisk-renderer.js
@@ -39,7 +39,7 @@ const getAction = async (resourceType, extension) => {
})
};
-const render = (resource, action) => {
+const renderWithAction = (resource, action) => {
const name = action.name;
const blocking = true, result = true
const params = {
@@ -55,7 +55,7 @@ const render = (resource, action) => {
return getAction(resourceType, extension)
},
render : (resource, action) => {
- return render(resource, action);
+ return renderWithAction(resource, action);
},
}
@@ -66,7 +66,7 @@ function main () {
title: 'cmdline title test',
body: 'cmdline body test',
}
- resolve(render(resource, getAction('microsling/somedoc', 'html')));
+ resolve(renderWithAction(resource, getAction('microsling/somedoc', 'html')));
});
}