From e1d221e9a95f9a85b2c6b5990caf6312bf10e415 Mon Sep 17 00:00:00 2001 From: eight Date: Tue, 12 Sep 2017 18:54:38 +0800 Subject: [PATCH] Fix: saveStyle indent --- background/storage.js | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/background/storage.js b/background/storage.js index 72bb0828..58ea0796 100644 --- a/background/storage.js +++ b/background/storage.js @@ -469,20 +469,21 @@ function saveStyle(style) { return decide(); function processUsercss(style) { - return findDupUsercss(style).then(dup => { - if (!dup) { - return; - } - if (!id) { - id = dup.id; - } - if (reason === 'config') { - return; - } - // preserve style.vars during update - usercss.assignVars(style, dup); - }) - .then(() => usercss.buildCode(style)); + return findDupUsercss(style) + .then(dup => { + if (!dup) { + return; + } + if (!id) { + id = dup.id; + } + if (reason === 'config') { + return; + } + // preserve style.vars during update + usercss.assignVars(style, dup); + }) + .then(() => usercss.buildCode(style)); } function decide() {