Skip to content

Commit d46ea45

Browse files
committed
Remove redundant type check (thanks @FrnchFrgg)
1 parent 47215b2 commit d46ea45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parse-config/parse-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class ConfigParser {
117117
}
118118

119119
if (typeof value === "string") {
120-
if (typeof value === "string" && value.startsWith("$ex")) {
120+
if (value.startsWith("$ex")) {
121121
value =
122122
"$fn ({ getFromConfig, get, hass, vars, path, css_vars, xs, ys, statistics, states, meta }) => " +
123123
value.slice(3);

0 commit comments

Comments
 (0)