Skip to content

Commit 466bdd2

Browse files
committed
Apply more code suggestions
1 parent b782704 commit 466bdd2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/zarr/storage/_common.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ async def make_store_path(
321321
# By only allowing dictionaries, which are in-memory, we know that MemoryStore appropriate.
322322
store = await MemoryStore.open(store_dict=store_like, read_only=_read_only)
323323
elif _has_fsspec and isinstance(store_like, FSMap):
324-
if not isinstance(store_like, FSMap):
325-
raise (TypeError(f"Unsupported type for store_like: '{type(store_like).__name__}'"))
326324
if path:
327325
raise ValueError("'path' was provided but is not used for FSMap store_like objects")
328326
if storage_options:
@@ -331,7 +329,7 @@ async def make_store_path(
331329
)
332330
store = FsspecStore.from_mapper(store_like, read_only=_read_only)
333331
else:
334-
raise (TypeError(f"Unsupported type for store_like: '{type(store_like).__name__}'"))
332+
raise TypeError(f"Unsupported type for store_like: '{type(store_like).__name__}'")
335333

336334
result = await StorePath.open(store, path=path_normalized, mode=mode)
337335

0 commit comments

Comments
 (0)