Skip to content

Commit

Permalink
Simplify destructuring this array
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Mar 30, 2013
1 parent 85eb73c commit 332e0fb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Library/Homebrew/cmd/doctor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -625,11 +625,8 @@ def check_for_config_scripts
EOS

config_scripts.each do |pair|
dn = pair[0]
pair[1].each do |fn|
s << " #{dn}/#{fn}\n"
end
config_scripts.each do |dir, files|
files.each { |fn| s << " #{dir}/#{fn}\n" }
end
s
end
Expand Down

0 comments on commit 332e0fb

Please sign in to comment.