chore: drop redundant '' check in style_value_to_string

The empty string already falls through to the `typeof value === 'string'`
branch which returns it as-is, so the explicit check was redundant.
pull/18176/head
Mathias Picker 4 months ago
parent e4ad69ea76
commit 3e2d1a89c3

@ -117,7 +117,7 @@ function append_styles(styles, important = false) {
* @returns {string} * @returns {string}
*/ */
function style_value_to_string(value) { function style_value_to_string(value) {
if (value == null || value === false || value === '') return ''; if (value == null || value === false) return '';
if (typeof value === 'string') return value; if (typeof value === 'string') return value;
if (Array.isArray(value)) { if (Array.isArray(value)) {
var array_result = ''; var array_result = '';

Loading…
Cancel
Save