From 75254b774b5d331c985f6a7db34a297434473392 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 15 Jan 2021 13:39:11 +0100 Subject: [PATCH] This is my contribution to Superalgos --- Client/httpInterface.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index c1d69da31..a89a053fb 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -601,9 +601,11 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE async function contribute() { if (await doGit() === false) { respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), httpResponse) + return } if (await doGithub() === false) { respondWithContent(JSON.stringify(global.DEFAULT_FAIL_RESPONSE), httpResponse) + return } respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) }