From 969127a72a8e1bc4effccaece7c14968a78e938f Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Thu, 8 Mar 2018 13:45:22 -0500 Subject: [PATCH] Remove triple parens --- js/logging.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/logging.js b/js/logging.js index 43ecaad0f..d1961226f 100644 --- a/js/logging.js +++ b/js/logging.js @@ -100,20 +100,20 @@ function format(entries) { } function fetch() { - return new Promise(((resolve) => { + return new Promise((resolve) => { ipc.send('fetch-log'); ipc.on('fetched-log', (event, text) => { const result = `${getHeader()}\n${format(text)}`; resolve(result); }); - })); + }); } function publish(rawContent) { const content = rawContent || fetch(); - return new Promise(((resolve) => { + return new Promise((resolve) => { const payload = textsecure.utils.jsonThing({ files: { 'debugLog.txt': { @@ -129,7 +129,7 @@ function publish(rawContent) { resolve(response.html_url); }) .fail(resolve); - })); + }); }