This is an automated email from the ASF dual-hosted git repository. alexkli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git
commit 18cf6a87d6186bf0974d7a5909af33987f12694c Author: Alexander Klimetschek <[email protected]> AuthorDate: Mon Apr 13 23:33:17 2020 -0700 remove incorrect and unnecessary module export statements in agents --- agent/agent-activationdb.js | 3 +-- agent/agent-concurrency.js | 3 +-- agent/agent-ngrok.js | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/agent/agent-activationdb.js b/agent/agent-activationdb.js index 5234596..f251d2d 100644 --- a/agent/agent-activationdb.js +++ b/agent/agent-activationdb.js @@ -150,6 +150,7 @@ async function doMain(args) { } // OpenWhisk does not like raw exceptions, the error object should be the string message only +// eslint-disable-next-line no-unused-vars async function main(args) { try { return await doMain(args); @@ -158,5 +159,3 @@ async function main(args) { return Promise.reject({ error: e.message, code: e.code}); } } - -module.export = main; diff --git a/agent/agent-concurrency.js b/agent/agent-concurrency.js index 63ad5a6..90f63e6 100644 --- a/agent/agent-concurrency.js +++ b/agent/agent-concurrency.js @@ -137,6 +137,7 @@ async function doMain(args) { } // OpenWhisk does not like raw exceptions, the error object should be the string message only +// eslint-disable-next-line no-unused-vars async function main(args) { try { return await doMain(args); @@ -145,5 +146,3 @@ async function main(args) { return Promise.reject({ error: e.message, code: e.code}); } } - -module.export = main; diff --git a/agent/agent-ngrok.js b/agent/agent-ngrok.js index fa71cca..ccb8deb 100644 --- a/agent/agent-ngrok.js +++ b/agent/agent-ngrok.js @@ -100,6 +100,7 @@ async function doMain(args) { } // OpenWhisk does not like raw exceptions, the error object should be the string message only +// eslint-disable-next-line no-unused-vars async function main(args) { try { return await doMain(args); @@ -108,5 +109,3 @@ async function main(args) { return Promise.reject({ error: e.message, code: e.code}); } } - -module.export = main;
