Skip to content

Commit

Permalink
[Flight] Fix style nit from facebook#26623 (facebook#26629)
Browse files Browse the repository at this point in the history
Maybe this is faster.
facebook#26623 (comment)
  • Loading branch information
sophiebits authored Apr 14, 2023
1 parent ab2385f commit 2bfe4b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-client/src/ReactFlightClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ export function parseModelString(
}
case '-': {
// $-0 or $-Infinity
if (value[2] === '0') {
if (value === '$-0') {
return -0;
} else {
return -Infinity;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-server/src/ReactFlightReplyServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ function parseModelString(
}
case '-': {
// $-0 or $-Infinity
if (value[2] === '0') {
if (value === '$-0') {
return -0;
} else {
return -Infinity;
Expand Down

0 comments on commit 2bfe4b2

Please sign in to comment.