diff --git a/src/ngio/core/image_like_handler.py b/src/ngio/core/image_like_handler.py index 0b00293..81488bc 100644 --- a/src/ngio/core/image_like_handler.py +++ b/src/ngio/core/image_like_handler.py @@ -214,12 +214,6 @@ def _get_pipe( return data_pipe.get(data=self.array) elif mode == "dask": return data_pipe.get(data=self.dask_array) - if self._dask_lock is None: - return data_pipe.get(data=self.dask_array) - - with self._dask_lock: - patch = data_pipe.get(data=self.dask_array) - return patch else: raise ValueError(f"Invalid mode {mode}")