From d2aeadb1cd087081c7631622e01d8522e63e27eb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 19 Jul 2014 23:36:01 -0500 Subject: [PATCH] Pass array to puts instead of iterating over it --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 592f4664c9..47af8d5c45 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