Skip to content

Commit

Permalink
Remove redundant continues
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Sep 6, 2023
1 parent 01fc6c0 commit ba798d2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/fastapi_poe/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,13 @@ async def handle_query(self, query: QueryRequest) -> AsyncIterable[ServerSentEve
yield event
elif isinstance(event, ErrorResponse):
yield self.error_event(event.text, allow_retry=event.allow_retry)
continue
elif isinstance(event, MetaResponse):
yield self.meta_event(
content_type=event.content_type,
refetch_settings=event.refetch_settings,
linkify=event.linkify,
suggested_replies=event.suggested_replies,
)
continue
elif event.is_suggested_reply:
yield self.suggested_reply_event(event.text)
elif event.is_replace_response:
Expand Down

0 comments on commit ba798d2

Please sign in to comment.