From 5dd322e5122299d2de4dbefa32b61be72a1d5616 Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 9 Nov 2017 09:04:19 +0800 Subject: [PATCH] Refactor: shouldShowConfig --- manage/manage.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/manage/manage.js b/manage/manage.js index 2a65607b..e0530711 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -204,10 +204,7 @@ function createStyleElement({style, name}) { return entry; function shouldShowConfig() { - if (!style.usercssData) { - return false; - } - return Object.keys(style.usercssData.vars).length > 0; + return style.usercssData && Object.keys(style.usercssData.vars).length > 0; } }