Skip to content

Commit 829eded

Browse files
committed
apply code style
1 parent 0064e10 commit 829eded

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cdm/zarr/src/main/java/ucar/nc2/iosp/zarr/ZarrHeader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,7 @@ private static int getChunkIndex(RandomAccessDirectoryItem item, ZArray zarray)
372372

373373
int nDims = zarray.getShape().length;
374374
// verify is data file, else return -1
375-
String pattern = String.format("([0-9]+%c){%d}[0-9]+", zarray.getSeparator().charAt(0),
376-
nDims == 0 ? 0 : nDims - 1);
375+
String pattern = String.format("([0-9]+%c){%d}[0-9]+", zarray.getSeparator().charAt(0), nDims == 0 ? 0 : nDims - 1);
377376

378377
if (!fileName.matches(pattern)) {
379378
return -1;

cdm/zarr/src/test/java/ucar/nc2/iosp/zarr/TestZarrIosp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public void testScalarGeozarrArray() throws IOException {
345345
NetcdfFile ncfile = NetcdfFiles.open(SCALAR_GEOZARR_DATA);
346346
Variable scalarVar = ncfile.findVariable("spatial_ref");
347347
assertThat(scalarVar != null).isTrue();
348-
assertThat(scalarVar.getShape()).isEqualTo(new int[]{});
348+
assertThat(scalarVar.getShape()).isEqualTo(new int[] {});
349349
assertThat(scalarVar.getSize()).isEqualTo(1);
350350
Array sArray = scalarVar.read();
351351
assertThat(sArray).isNotNull();

0 commit comments

Comments
 (0)