From f8f64420cc5a2396e76c3a73493be5c4855401da Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 5 Jan 2021 14:18:02 +0100 Subject: [PATCH] This is my contribution to Superalgos --- Client/httpInterface.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Client/httpInterface.js b/Client/httpInterface.js index 286ad105b..8d1c0c7c9 100644 --- a/Client/httpInterface.js +++ b/Client/httpInterface.js @@ -534,12 +534,12 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE } const git = simpleGit(options) const commitMessage = unescape(requestParameters[3]) - git.add('./*') - git.commit(commitMessage, onCommit) - + git + .add('./*') + .commit(commitMessage, onCommit) + function onCommit(err) { - console.log(err) - if (err) {throw err} + if (err) { throw err } respondWithContent(JSON.stringify(global.DEFAULT_OK_RESPONSE), httpResponse) } } catch (err) {