From 4963a3e25db4310b4f274528018ffd283c25ceb1 Mon Sep 17 00:00:00 2001 From: "James A. Rosen" Date: Sat, 12 Jun 2010 22:45:08 -0400 Subject: [PATCH] fixed block-variable-shadows-local-variable warning in LinkedIn strategy --- oa-oauth/lib/omniauth/strategies/linked_in.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oa-oauth/lib/omniauth/strategies/linked_in.rb b/oa-oauth/lib/omniauth/strategies/linked_in.rb index 7c230ac..3d7c749 100644 --- a/oa-oauth/lib/omniauth/strategies/linked_in.rb +++ b/oa-oauth/lib/omniauth/strategies/linked_in.rb @@ -32,9 +32,9 @@ module OmniAuth 'location' => person.xpath('location/name').text, 'image' => person.xpath('picture-url').text, 'description' => person.xpath('headline').text, - 'urls' => person.css('member-url-resources member-url').inject({}) do |hash,element| - hash[element.xpath('name').text] = element.xpath('url').text - hash + 'urls' => person.css('member-url-resources member-url').inject({}) do |h,element| + h[element.xpath('name').text] = element.xpath('url').text + h end }