[Flight] Fix style nit from #26623 (#26629)

Maybe this is faster.
https://github.com/facebook/react/pull/26623#discussion_r1167053174
This commit is contained in:
Sophie Alpert 2023-04-14 09:49:41 -07:00 committed by GitHub
parent ab2385fa38
commit 2bfe4b246f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -565,7 +565,7 @@ export function parseModelString(
}
case '-': {
// $-0 or $-Infinity
if (value[2] === '0') {
if (value === '$-0') {
return -0;
} else {
return -Infinity;

View File

@ -403,7 +403,7 @@ function parseModelString(
}
case '-': {
// $-0 or $-Infinity
if (value[2] === '0') {
if (value === '$-0') {
return -0;
} else {
return -Infinity;