Fix: promise indent

This commit is contained in:
eight 2017-11-09 06:00:05 +08:00
parent 92b01e19e8
commit e0bd991482

View File

@ -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':