Skip to content

Commit

Permalink
More cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
darrencauthon committed Oct 11, 2012
1 parent 3cfc7a2 commit 47f35af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/yahoo_weatherman/woeid_lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 47f35af

Please sign in to comment.