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

This commit is contained in:
丶远方 2023-06-10 17:08:02 +08:00 committed by GitHub
parent a95e612b25
commit 00e0766934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View 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
}
}