From fa66cf3c877ec33c4de96f2f86f564662f4b2018 Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Tue, 11 Feb 2014 17:02:52 +1300 Subject: [PATCH] simplified code --- plugins/newegg.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/newegg.py b/plugins/newegg.py index 87242dc..0a88286 100644 --- a/plugins/newegg.py +++ b/plugins/newegg.py @@ -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."