Skip to content

Commit

Permalink
Remove dead code branch-- new NetcdfDataset never null
Browse files Browse the repository at this point in the history
  • Loading branch information
Tara Drwenski committed May 6, 2024
1 parent 50b8947 commit 28873f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public ucar.nc2.dt.grid.GridDataset getGridDataset(String matchPath) throws IOEx
// the new API, that way we get any new RandomAccessFile implementations that rely
// on the new API (e.g. S3RandomAccessFile).
NetcdfDataset ncd = new NetcdfDataset(ncdNew.getReferencedFile(), null);
return ncd == null ? null : new ucar.nc2.dt.grid.GridDataset(ncd);
return new ucar.nc2.dt.grid.GridDataset(ncd);
} else if (wantName.equals(hasName + FMRC)
&& wantDatasets.contains(FeatureCollectionConfig.FmrcDatasetType.TwoD)) {
return fmrc.getDataset2D(null);
Expand Down

0 comments on commit 28873f2

Please sign in to comment.