lib/linkedin-scraper/profile.rb in linkedin-scraper-2.1.0 vs lib/linkedin-scraper/profile.rb in linkedin-scraper-2.1.1

- old
+ new

@@ -251,12 +251,12 @@ result[:industry] = company_details['industry'] result[:founded] = company_details['yearFounded'] headquarters = company_details['headquarters'] if headquarters result[:address] = %{#{headquarters['street1']} #{headquarters['street2']} #{headquarters['city']}, #{headquarters['state']} #{headquarters['zip']} #{headquarters['country']}} - end - [:street1, :street2, :city, :zip, :state, :country].each do |section| - result[section] = headquarters[section.to_s] + [:street1, :street2, :city, :zip, :state, :country].each do |section| + result[section] = headquarters[section.to_s] + end end end result end