Skip to content

Commit

Permalink
fix: fix always true condition (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 21, 2022
1 parent f8368ef commit bebaf0b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Expand Up @@ -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
Expand Down

0 comments on commit bebaf0b

Please sign in to comment.