mirror of https://github.com/vuejs/core.git
refactor(shared): merge if statements (#8394)
This commit is contained in:
parent
a95e612b25
commit
00e0766934
|
@ -19,9 +19,7 @@ export function normalizeStyle(
|
|||
}
|
||||
}
|
||||
return res
|
||||
} else if (isString(value)) {
|
||||
return value
|
||||
} else if (isObject(value)) {
|
||||
} else if (isString(value) || isObject(value)) {
|
||||
return value
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue