Skip to content

Commit

Permalink
Removing commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoGFarias authored Mar 2, 2023
1 parent 45bcba5 commit 0d436d9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/org/json/JSONObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -1290,11 +1290,7 @@ public double optDouble(String key, double defaultValue) {
if (val == null) {
return defaultValue;
}
final double doubleValue = val.doubleValue();
// if (Double.isNaN(doubleValue) || Double.isInfinite(doubleValue)) {
// return defaultValue;
// }
return doubleValue;
return val.doubleValue();
}

/**
Expand Down

0 comments on commit 0d436d9

Please sign in to comment.