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 <[email protected]> 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'))); }); }
