remove unnecessary returns

This commit is contained in:
Timothy Pogue 2022-09-08 10:37:41 -06:00
parent df3c126146
commit 379b1cbc90

View File

@ -73,7 +73,6 @@ async def _process_consumer_request(
response = WSWhitelistMessage(data=whitelist) response = WSWhitelistMessage(data=whitelist)
# Send it back # Send it back
await channel.send(response.dict(exclude_none=True)) await channel.send(response.dict(exclude_none=True))
return
elif type == RPCRequestType.ANALYZED_DF: elif type == RPCRequestType.ANALYZED_DF:
limit = None limit = None
@ -90,8 +89,6 @@ async def _process_consumer_request(
response = WSAnalyzedDFMessage(data=message) response = WSAnalyzedDFMessage(data=message)
await channel.send(response.dict(exclude_none=True)) await channel.send(response.dict(exclude_none=True))
return
@router.websocket("/message/ws") @router.websocket("/message/ws")
async def message_endpoint( async def message_endpoint(