Skip to content

Commit 2b351d8

Browse files
PR review feedback (part 2)
1 parent 78a389f commit 2b351d8

File tree

1 file changed

+1
-4
lines changed
  • src/dstack/_internal/server/services/logs

1 file changed

+1
-4
lines changed

src/dstack/_internal/server/services/logs/aws.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ def _get_log_events_with_retry(
117117
if cw_events:
118118
return cw_events, next_token
119119

120-
if not next_token:
121-
return [], None
122-
123-
if next_token == previous_next_token:
120+
if not next_token or next_token == previous_next_token:
124121
return [], None
125122

126123
previous_next_token = next_token

0 commit comments

Comments
 (0)