Skip to content

Commit 98f00dd

Browse files
committed
Don't mutate FSMap object
1 parent 3b06c53 commit 98f00dd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/zarr/storage/_fsspec.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,9 @@ def from_mapper(
202202
-------
203203
FsspecStore
204204
"""
205-
if not fs_map.fs.async_impl or not fs_map.fs.asynchronous:
206-
fs_map.fs = _make_async(fs_map.fs)
205+
fs = _make_async(fs_map.fs)
207206
return cls(
208-
fs=fs_map.fs,
207+
fs=fs,
209208
path=fs_map.root,
210209
read_only=read_only,
211210
allowed_exceptions=allowed_exceptions,

0 commit comments

Comments
 (0)