Skip to content

Commit 4b7c562

Browse files
243083dfgaearon
authored andcommitted
Remove unnecessary comparison; (#11215)
1 parent d7c271e commit 4b7c562

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/renderers/dom/shared/CSSPropertyOperations.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,8 @@ var CSSPropertyOperations = {
8181
}
8282
if (isCustomProperty) {
8383
style.setProperty(styleName, styleValue);
84-
} else if (styleValue) {
85-
style[styleName] = styleValue;
8684
} else {
87-
style[styleName] = '';
85+
style[styleName] = styleValue;
8886
}
8987
}
9088
},

0 commit comments

Comments
 (0)