simplified code

This commit is contained in:
Luke Rogers 2014-02-11 17:02:52 +13:00
parent 90bb260f5f
commit fa66cf3c87

View file

@ -86,8 +86,7 @@ def newegg(inp):
# get the first result # get the first result
if r["ProductListItems"]: if r["ProductListItems"]:
item = r["ProductListItems"][0] return format_item(r["ProductListItems"][0])
return format_item(item)
else: else:
return "No results found." return "No results found."