mirror of
https://github.com/solero/houdini.git
synced 2025-08-09 20:24:05 +00:00
Remove return statement from handle_buy_inventory
This commit is contained in:
@@ -68,12 +68,12 @@ async def handle_buy_inventory(p, item: Item):
|
|||||||
if item.id in p.inventory:
|
if item.id in p.inventory:
|
||||||
return await p.send_error(400)
|
return await p.send_error(400)
|
||||||
|
|
||||||
if item.tour:
|
|
||||||
return await p.add_inbox(p.server.postcards[126])
|
|
||||||
|
|
||||||
if p.coins < item.cost:
|
if p.coins < item.cost:
|
||||||
return await p.send_error(401)
|
return await p.send_error(401)
|
||||||
|
|
||||||
|
if item.tour:
|
||||||
|
await p.add_inbox(p.server.postcards[126])
|
||||||
|
|
||||||
await p.add_inventory(item)
|
await p.add_inventory(item)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user