Skip to content

Commit 5c8903f

Browse files
committed
lint
1 parent f2c827d commit 5c8903f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/zarr/storage/object_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ async def _get_partial_values(
260260
per_file_bounded_requests[path].append(
261261
{"original_request_index": idx, "start": start, "end": end}
262262
)
263-
elif end is None and start < 0:
263+
elif start < 0:
264264
# Suffix request from the end
265265
other_requests.append(
266266
{"original_request_index": idx, "path": path, "range": {"suffix": abs(start)}}
267267
)
268-
elif end is None and start >= 0:
268+
elif start >= 0:
269269
# Offset request to the end
270270
other_requests.append(
271271
{"original_request_index": idx, "path": path, "range": {"offset": start}}

0 commit comments

Comments
 (0)