Skip to content

Commit 15c3e73

Browse files
authored
Apply suggestion from @ianhi
1 parent a4790a0 commit 15c3e73

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

xarray/backends/netCDF4_.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -717,11 +717,7 @@ def _has_netcdf_ext(path: str | os.PathLike, is_remote: bool = False) -> bool:
717717

718718
if isinstance(filename_or_obj, str):
719719
url_lower = filename_or_obj.lower()
720-
from xarray.backends.common import _is_likely_dap_url
721-
722-
if _is_likely_dap_url(url_lower):
723-
return True
724-
elif is_remote_uri(filename_or_obj):
720+
if is_remote_uri(filename_or_obj):
725721
# For remote URIs, check extension (accounting for query params/fragments)
726722
# Remote netcdf-c can handle both regular URLs and DAP URLs
727723
if _has_netcdf_ext(filename_or_obj, is_remote=True):

0 commit comments

Comments
 (0)