From b8de51be57db74c3da46652c823de34ff4629b8e Mon Sep 17 00:00:00 2001 From: Kazumi Harada Date: Sun, 9 Jun 2019 13:49:30 +0900 Subject: [PATCH] [update] adjust code style --- browser/main/lib/ConfigManager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/browser/main/lib/ConfigManager.js b/browser/main/lib/ConfigManager.js index a1868047..feaf92a6 100644 --- a/browser/main/lib/ConfigManager.js +++ b/browser/main/lib/ConfigManager.js @@ -155,12 +155,12 @@ function get () { function set (updates) { const currentConfig = get() - let arrangedUpdates = updates - if (updates.preview !== undefined && updates.preview.customCSS === "") { + const arrangedUpdates = updates + if (updates.preview !== undefined && updates.preview.customCSS === '') { arrangedUpdates.preview.customCSS = DEFAULT_CONFIG.preview.customCSS } - const newConfig = Object.assign({}, DEFAULT_CONFIG, currentConfig, arrangedUpdates); + const newConfig = Object.assign({}, DEFAULT_CONFIG, currentConfig, arrangedUpdates) if (!validate(newConfig)) throw new Error('INVALID CONFIG') _save(newConfig)