diff options
| author | Jack Nagel | 2013-03-30 14:53:35 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-03-30 15:16:44 -0500 |
| commit | 332e0fb20c640fa6951dddda23c0648f6bc2f455 (patch) | |
| tree | 3dd0abc570971b81d4882eb40fd544792498dfd5 /Library | |
| parent | 85eb73ced7316171a3e5087e601f3c182b8859ed (diff) | |
| download | homebrew-332e0fb20c640fa6951dddda23c0648f6bc2f455.tar.bz2 | |
Simplify destructuring this array
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index b007224fe..a0ac89026 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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 |
