Skip to content

Commit

Permalink
[Flight] Fix style nit from #26623 (#26629)
Browse files Browse the repository at this point in the history
Maybe this is faster.
#26623 (comment)

DiffTrain build for [2bfe4b2](2bfe4b2)
  • Loading branch information
sophiebits committed Apr 14, 2023
1 parent 6f02a01 commit b679adf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ab2385fa388f3d4ebc0b1a9f5a747c82e4aa82ed
2bfe4b246f58d1f8d357f984fba9a8aa1fa79c73
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ function parseModelString(response, parentObject, key, value) {

case "-": {
// $-0 or $-Infinity
if (value[2] === "0") {
if (value === "$-0") {
return -0;
} else {
return -Infinity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ function parseModelString(response, parentObject, key, value) {

case "-": {
// $-0 or $-Infinity
if (value[2] === "0") {
if (value === "$-0") {
return -0;
} else {
return -Infinity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function parseModelString(response, parentObject, key, value) {
case "I":
return Infinity;
case "-":
return "0" === value[2] ? -0 : -Infinity;
return "$-0" === value ? -0 : -Infinity;
case "N":
return NaN;
case "u":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function parseModelString(response, parentObject, key, value) {
case "I":
return Infinity;
case "-":
return "0" === value[2] ? -0 : -Infinity;
return "$-0" === value ? -0 : -Infinity;
case "N":
return NaN;
case "u":
Expand Down

0 comments on commit b679adf

Please sign in to comment.