From bebaf0b0655f0bdc58a6548b04230cd420245e5e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 21 Mar 2022 18:21:42 +0200 Subject: [PATCH] fix: fix always true condition (#160) --- lib/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index ce9ba7d..37fc5ac 100644 --- a/lib/index.js +++ b/lib/index.js @@ -91,8 +91,7 @@ Gauge.prototype._computeTheme = function (theme) { if (typeof theme === 'string') { theme = this._themes.getTheme(theme) } else if ( - theme && - (Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null) + Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null ) { var useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode var useColor = theme.hasColor == null ? hasColor : theme.hasColor