From 43448ef2e812efba84d56d1faa95e7aded43dc08 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 19 Jul 2014 23:36:01 -0500 Subject: Pass array to puts instead of iterating over it --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 592f4664c..47af8d5c4 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -1118,7 +1118,7 @@ module Homebrew checks = Checks.new if ARGV.include? '--list-checks' - checks.methods.grep(/^check_/).sort.each { |m| puts m } + puts checks.methods.grep(/^check_/).sort exit end -- cgit v1.2.3