From 47f35af969c1af53616e75c14d9c5d62fca40179 Mon Sep 17 00:00:00 2001 From: Darren Cauthon Date: Wed, 10 Oct 2012 21:40:41 -0500 Subject: [PATCH] More cleanup. --- lib/yahoo_weatherman/woeid_lookup.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/yahoo_weatherman/woeid_lookup.rb b/lib/yahoo_weatherman/woeid_lookup.rb index d95d3b0..d686945 100644 --- a/lib/yahoo_weatherman/woeid_lookup.rb +++ b/lib/yahoo_weatherman/woeid_lookup.rb @@ -9,8 +9,7 @@ def initialize(app_id) def get_woeid(location) raw = get query_string(location) - woeid_query = Nokogiri::HTML(raw).at_xpath('.//woeid') - woeid_query.content + Nokogiri::HTML(raw).at_xpath('.//woeid').content rescue nil end