From 28873f2dcfa8392321ee1a392775b7f0e28c1307 Mon Sep 17 00:00:00 2001 From: Tara Drwenski Date: Fri, 3 May 2024 09:49:51 -0500 Subject: [PATCH] Remove dead code branch-- new NetcdfDataset never null --- .../main/java/thredds/featurecollection/InvDatasetFcFmrc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tds/src/main/java/thredds/featurecollection/InvDatasetFcFmrc.java b/tds/src/main/java/thredds/featurecollection/InvDatasetFcFmrc.java index 1674181c31..7221ef67ac 100644 --- a/tds/src/main/java/thredds/featurecollection/InvDatasetFcFmrc.java +++ b/tds/src/main/java/thredds/featurecollection/InvDatasetFcFmrc.java @@ -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);