summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/array_spec.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-09-07 18:54:01 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-09-07 20:25:12 +0900
commit187328b7037e54f1f5c2558d84215f3d5d3fbdee (patch)
tree02dd244a2c1cc84d86e3972f4955c4565a899ad8 /spec/ruby/core/array/array_spec.rb
parent324dd9d01f0c97631a2588f63231bcb651844cca (diff)
compile.c (compile_array): refactoring
"popped" case can be so simple, so this change moves the branch to the first, instead of scattering `if (popped)` branches to the main part. Also, the return value "len" is not used. So it returns just 0 or 1.
Diffstat (limited to 'spec/ruby/core/array/array_spec.rb')
0 files changed, 0 insertions, 0 deletions