Skip to content

Commit b8de51b

Browse files
KazumiHARADARokt33r
authored andcommitted
[update] adjust code style
1 parent 1ce72b9 commit b8de51b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

browser/main/lib/ConfigManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ function get () {
155155
function set (updates) {
156156
const currentConfig = get()
157157

158-
let arrangedUpdates = updates
159-
if (updates.preview !== undefined && updates.preview.customCSS === "") {
158+
const arrangedUpdates = updates
159+
if (updates.preview !== undefined && updates.preview.customCSS === '') {
160160
arrangedUpdates.preview.customCSS = DEFAULT_CONFIG.preview.customCSS
161161
}
162162

163-
const newConfig = Object.assign({}, DEFAULT_CONFIG, currentConfig, arrangedUpdates);
163+
const newConfig = Object.assign({}, DEFAULT_CONFIG, currentConfig, arrangedUpdates)
164164
if (!validate(newConfig)) throw new Error('INVALID CONFIG')
165165
_save(newConfig)
166166

0 commit comments

Comments
 (0)