simplified code

This commit is contained in:
Luke Rogers 2014-02-11 17:02:52 +13:00
parent 90bb260f5f
commit fa66cf3c87
1 changed files with 1 additions and 2 deletions

View File

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