Commit 80c1c607 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #3047 from csouls/rafactor_array_ruby_extension

Remove redundant conditions of Array#each in ruby extension
parents 2a234a93 d3f59db5
......@@ -15,10 +15,8 @@ class Array
idx, length = -1, self.length-1
while idx < length and length <= self.length and length = self.length-1
elm = self[idx += 1]
unless elm
if elm.nil? and length >= self.length
break
end
if elm.nil? and length >= self.length
break
end
block.call(elm)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment