From 00e0766934cf8c9d145845b53514e532c84e32c4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E4=B8=B6=E8=BF=9C=E6=96=B9?= Date: Sat, 10 Jun 2023 17:08:02 +0800 Subject: [PATCH] refactor(shared): merge if statements (#8394) --- packages/shared/src/normalizeProp.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/shared/src/normalizeProp.ts b/packages/shared/src/normalizeProp.ts index 6a1dd20e39..10d54c6b51 100644 --- a/packages/shared/src/normalizeProp.ts +++ b/packages/shared/src/normalizeProp.ts @@ -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 } } -- 2.47.2