]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
refactor(shared): merge if statements (#8394)
author丶远方 <yangpanteng@gmail.com>
Sat, 10 Jun 2023 09:08:02 +0000 (17:08 +0800)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2023 09:08:02 +0000 (17:08 +0800)
packages/shared/src/normalizeProp.ts

index 6a1dd20e3933bd697dcfb2666581af8f53c157c0..10d54c6b51ad5cecaa23a4c1f2864e457490425e 100644 (file)
@@ -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
   }
 }