aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMartin Afanasjew2016-04-20 17:47:10 +0200
committerMartin Afanasjew2016-04-22 00:47:43 +0200
commit30c0d97e5c2c661296360340b7002bd7560f0253 (patch)
treef7fbaae199694712fb71f3cdcf270b4eae045f5e /Library/Homebrew/cmd
parenta61829da467a80d7720d2a40b16141552e1af71e (diff)
downloadbrew-30c0d97e5c2c661296360340b7002bd7560f0253.tar.bz2
readall: stop using no longer needed 'nostdout'
Since switching from `system` to `Utils.popen_read` we no longer need to suppress Ruby's output of `Syntax OK` to `$stdout`.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/readall.rb18
1 files changed, 8 insertions, 10 deletions
diff --git a/Library/Homebrew/cmd/readall.rb b/Library/Homebrew/cmd/readall.rb
index f95b7be74..886428c90 100644
--- a/Library/Homebrew/cmd/readall.rb
+++ b/Library/Homebrew/cmd/readall.rb
@@ -17,20 +17,18 @@ module Homebrew
end
failed = false
- nostdout do
- workers = (0...Hardware::CPU.cores).map do
- Thread.new do
- begin
- while rb = ruby_files.pop(true)
- # As a side effect, print syntax errors/warnings to `$stderr`.
- failed = true if syntax_errors_or_warnings?(rb)
- end
- rescue ThreadError # ignore empty queue error
+ workers = (0...Hardware::CPU.cores).map do
+ Thread.new do
+ begin
+ while rb = ruby_files.pop(true)
+ # As a side effect, print syntax errors/warnings to `$stderr`.
+ failed = true if syntax_errors_or_warnings?(rb)
end
+ rescue ThreadError # ignore empty queue error
end
end
- workers.map(&:join)
end
+ workers.each(&:join)
Homebrew.failed = failed
end