diff --git a/cdm/core/src/main/java/ucar/nc2/ft2/coverage/CoordAxisHelper.java b/cdm/core/src/main/java/ucar/nc2/ft2/coverage/CoordAxisHelper.java index 4fab1cd9ff..4ce291d799 100644 --- a/cdm/core/src/main/java/ucar/nc2/ft2/coverage/CoordAxisHelper.java +++ b/cdm/core/src/main/java/ucar/nc2/ft2/coverage/CoordAxisHelper.java @@ -237,7 +237,8 @@ private int findSingleHit(double target) { // edge cases: outside first interval double firstCoord1 = axis.getCoordEdge1(0); double firstCoord2 = axis.getCoordEdge2(0); - if ((axis.isAscending() && target < Math.min(firstCoord1, firstCoord2)) || (!axis.isAscending() && target > Math.max(firstCoord1, firstCoord2))) { + if ((axis.isAscending() && target < Math.min(firstCoord1, firstCoord2)) + || (!axis.isAscending() && target > Math.max(firstCoord1, firstCoord2))) { return -1; } int idxFound = -1;