Skip to content

Commit 302a004

Browse files
committedMar 19, 2025
prettier
1 parent 655f070 commit 302a004

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎src/runtime/parse-property-value.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,7 @@ export const parsePropertyValue = (propValue: unknown, propType: number): any =>
6969
* force it to be a number
7070
*/
7171
if (BUILD.propNumber && propType & MEMBER_FLAGS.Number) {
72-
return typeof propValue === 'string'
73-
? parseFloat(propValue)
74-
: typeof propValue === 'number'
75-
? propValue
76-
: NaN;
72+
return typeof propValue === 'string' ? parseFloat(propValue) : typeof propValue === 'number' ? propValue : NaN;
7773
}
7874

7975
/**

0 commit comments

Comments
 (0)