Skip to content
Snippets Groups Projects
Commit 30c0d97e authored by Martin Afanasjew's avatar Martin Afanasjew
Browse files

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`.
parent a61829da
No related branches found
No related tags found
No related merge requests found
...@@ -17,20 +17,18 @@ module Homebrew ...@@ -17,20 +17,18 @@ module Homebrew
end end
failed = false failed = false
nostdout do workers = (0...Hardware::CPU.cores).map do
workers = (0...Hardware::CPU.cores).map do Thread.new do
Thread.new do begin
begin while rb = ruby_files.pop(true)
while rb = ruby_files.pop(true) # As a side effect, print syntax errors/warnings to `$stderr`.
# As a side effect, print syntax errors/warnings to `$stderr`. failed = true if syntax_errors_or_warnings?(rb)
failed = true if syntax_errors_or_warnings?(rb)
end
rescue ThreadError # ignore empty queue error
end end
rescue ThreadError # ignore empty queue error
end end
end end
workers.map(&:join)
end end
workers.each(&:join)
Homebrew.failed = failed Homebrew.failed = failed
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment