string.c: remove unnecessary branch in the internal method.

parent 5c7aa4f2
...@@ -465,8 +465,6 @@ class String ...@@ -465,8 +465,6 @@ class String
end end
def __upto_endless(&block) def __upto_endless(&block)
return to_enum(:__upto_endless) unless block
len = self.length len = self.length
# both edges are all digits # both edges are all digits
bi = self.to_i(10) bi = self.to_i(10)
......
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