Skip to content

Commit 27584f3

Browse files
author
annie-mac
committed
fix
1 parent ddd598e commit 27584f3

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

sdk/cosmos/azure-cosmos/azure/cosmos/_execution_context/aio/base_execution_context.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,8 @@ async def _fetch_items_helper_no_retries(self, fetch_function):
124124
self._has_started = True
125125

126126
continuation_key = http_constants.HttpHeaders.Continuation
127-
if fetched_items:
128-
self._continuation = response_headers.get(continuation_key)
129-
else:
130-
self._continuation = None
127+
self._continuation = response_headers.get(continuation_key)
128+
131129
if fetched_items:
132130
break
133131
return fetched_items

sdk/cosmos/azure-cosmos/azure/cosmos/_execution_context/base_execution_context.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,8 @@ def _fetch_items_helper_no_retries(self, fetch_function):
122122
(fetched_items, response_headers) = fetch_function(new_options)
123123

124124
continuation_key = http_constants.HttpHeaders.Continuation
125-
if fetched_items:
126-
self._continuation = response_headers.get(continuation_key)
127-
else:
128-
self._continuation = None
125+
self._continuation = response_headers.get(continuation_key)
126+
129127
if fetched_items:
130128
break
131129
return fetched_items

sdk/cosmos/azure-cosmos/azure/cosmos/_feed_range.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# The MIT License (MIT)
32
# Copyright (c) 2014 Microsoft Corporation
43

0 commit comments

Comments
 (0)