simplified code
This commit is contained in:
parent
90bb260f5f
commit
fa66cf3c87
1 changed files with 1 additions and 2 deletions
|
@ -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."
|
||||||
|
|
||||||
|
|
Reference in a new issue