Skip to content

Commit

Permalink
Add explicit parens to drop the Ruby warning
Browse files Browse the repository at this point in the history
  • Loading branch information
franckverrot committed Mar 11, 2015
1 parent 1a1a970 commit 7f9904d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/countries/country.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def new(country_data)

def all(&blk)
blk ||= proc { |country, data| [data['name'], country] }
Data.map &blk
Data.map(&blk)
end

alias_method :countries, :all
Expand Down

0 comments on commit 7f9904d

Please sign in to comment.