From 6358162bec4abbe3b138136d31f8cc0218326d1c Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 9 Nov 2017 08:25:30 +0800 Subject: [PATCH] Fix: createOption in one line --- js/usercss.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/usercss.js b/js/usercss.js index 4be81f1e..9059d385 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -159,9 +159,7 @@ var usercss = (() => { if (Array.isArray(state.value)) { result.options = state.value.map(text => createOption(text)); } else { - result.options = Object.keys(state.value).map(k => - createOption(k, state.value[k]) - ); + result.options = Object.keys(state.value).map(k => createOption(k, state.value[k])); } result.default = result.options[0].name; } else if (state.type === 'dropdown' || state.type === 'image') {