mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
b595d3cf0f
This commit is contained in:
parent
a532e9dc37
commit
72d09a568f
16 changed files with 148 additions and 188 deletions
|
@ -91,12 +91,10 @@ class TestGemRequire < Gem::TestCase
|
|||
|
||||
def create_sync_thread
|
||||
Thread.new do
|
||||
begin
|
||||
yield
|
||||
ensure
|
||||
FILE_ENTERED_LATCH.release
|
||||
FILE_EXIT_LATCH.await
|
||||
end
|
||||
yield
|
||||
ensure
|
||||
FILE_ENTERED_LATCH.release
|
||||
FILE_EXIT_LATCH.await
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue