Explorar el Código

refactor(shared): merge if statements (#8394)

丶远方 hace 3 años
padre
commit
00e0766934
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      packages/shared/src/normalizeProp.ts

+ 1 - 3
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
   }
 }