diff options
| author | Martin Afanasjew | 2016-04-20 17:47:10 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-04-22 00:47:43 +0200 |
| commit | 30c0d97e5c2c661296360340b7002bd7560f0253 (patch) | |
| tree | f7fbaae199694712fb71f3cdcf270b4eae045f5e /Library/Homebrew/cmd | |
| parent | a61829da467a80d7720d2a40b16141552e1af71e (diff) | |
| download | brew-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.rb | 18 |
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 |
