Skip to content

Commit f8d7451

Browse files
IRSA-7518: Fix get double param
1 parent 3ec3959 commit f8d7451

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/firefly/java/edu/caltech/ipac/firefly/data/ServerRequest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ public double getDoubleParam(String key) {
278278
}
279279

280280
public double getDoubleParam(String key, double def) {
281-
double ret = StringUtils.getDouble(getParam(key));
282-
return Double.isNaN(ret) ? def : ret;
281+
return StringUtils.getDouble(getParam(key), def);
283282
}
284283

285284
public float getFloatParam(String key) {

0 commit comments

Comments
 (0)