From e0bd991482676ec92bc17e15a6d2adad0af972ed Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 9 Nov 2017 06:00:05 +0800 Subject: [PATCH] Fix: promise indent --- content/install-user-css.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/content/install-user-css.js b/content/install-user-css.js index 95ae9dd5..133124ba 100644 --- a/content/install-user-css.js +++ b/content/install-user-css.js @@ -71,11 +71,9 @@ function initUsercssInstall() { port.onMessage.addListener(msg => { switch (msg.method) { case 'getSourceCode': - pendingSource.then(sourceCode => - port.postMessage({method: msg.method + 'Response', sourceCode}) - ).catch(err => - port.postMessage({method: msg.method + 'Response', error: err.message || String(err)}) - ); + pendingSource + .then(sourceCode => port.postMessage({method: msg.method + 'Response', sourceCode})) + .catch(err => port.postMessage({method: msg.method + 'Response', error: err.message || String(err)})); break; case 'liveReloadStart':