Less code in begin block
This commit is contained in:
parent
cb684f6c1a
commit
bf53f3fd16
@ -604,10 +604,11 @@ module Homebrew
|
||||
test_error = false
|
||||
begin
|
||||
test = Test.new(argument, tap)
|
||||
test_error = !test.run
|
||||
rescue ArgumentError => e
|
||||
test_error = true
|
||||
ofail e.message
|
||||
else
|
||||
test_error = !test.run
|
||||
end
|
||||
any_errors ||= test_error
|
||||
tests << test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user