Skip to content

Commit 5e47bbf

Browse files
committed
Remove unnecessary elif
1 parent 824f5bf commit 5e47bbf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

storey/flow.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -847,9 +847,6 @@ def do(self, event):
847847
async def _call(self, event):
848848
if self._long_running:
849849
res = await asyncio.get_running_loop().run_in_executor(None, self.do, event)
850-
elif self._is_async_gen or self._is_sync_gen:
851-
# Generator functions return generators directly, don't await
852-
res = self.do(event)
853850
else:
854851
res = self.do(event)
855852
if self._is_async:

0 commit comments

Comments
 (0)