diff --git a/xarray/namedarray/_array_api/_manipulation_functions.py b/xarray/namedarray/_array_api/_manipulation_functions.py index 034932699d8..0cff3a1da15 100644 --- a/xarray/namedarray/_array_api/_manipulation_functions.py +++ b/xarray/namedarray/_array_api/_manipulation_functions.py @@ -273,7 +273,7 @@ def reshape( xp = _get_data_namespace(x) _data = xp.reshape(x._data, shape, copy=copy) - if math.prod(shape) == -1 and False: + if math.prod(shape) == -1: # Flattening operations merges all dimensions to 1: dims_raveled = _flatten_dims(x.dims) dim = dims_raveled[0]