Skip to content

Commit cf293ab

Browse files
committed
Improve comment
1 parent 78e676c commit cf293ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storey/sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def await_result(self):
8585
self._on_error()
8686
raise copy.copy(first_result)
8787

88-
# Check if this is a streaming response
88+
# If this is a stream response, return a generator
8989
if isinstance(first_result, (StreamChunk, StreamCompletion)):
9090
return self._stream_generator(first_result)
9191

@@ -490,7 +490,7 @@ async def await_result(self):
490490
await self._on_error()
491491
raise copy.copy(first_result)
492492

493-
# Check if this is a streaming response
493+
# If this is a stream response, return a generator
494494
if isinstance(first_result, (StreamChunk, StreamCompletion)):
495495
return self._stream_generator(first_result)
496496

0 commit comments

Comments
 (0)