Commit d3f59db5 authored by Yusuke Tanaka's avatar Yusuke Tanaka

Remove redundant conditions of Array#each in ruby extension

parent 2a234a93
......@@ -15,11 +15,9 @@ 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
end
block.call(elm)
end
self
......
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