1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

don't use toplevel return

Toplevel return is supported after Ruby 2.4, so don't use it
for older BASERUBY.
This commit is contained in:
Koichi Sasada 2020-09-04 04:07:34 +09:00
parent b52513e2a1
commit 3f922f3b77

View file

@ -57,8 +57,10 @@ assert_equal 'ok', %q{
###
###
# Ractor still has several memory corruption so skip huge number of tests
return if ENV['GITHUB_WORKFLOW'] &&
ENV['GITHUB_WORKFLOW'] == 'Compilations'
if ENV['GITHUB_WORKFLOW'] &&
ENV['GITHUB_WORKFLOW'] == 'Compilations'
# ignore the follow
else
# Ractor.select(*ractors) receives a values from a ractors.
# It is similar to select(2) and Go's select syntax.
@ -519,3 +521,4 @@ assert_equal 'nil', %q{
r.name.inspect
}
end # if !ENV['GITHUB_WORKFLOW']