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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-05-13 16:08:25 +09:00
parent 5c7aa4f299
commit 3a3761ec69
@@ -465,8 +465,6 @@ class String
end
def __upto_endless(&block)
return to_enum(:__upto_endless) unless block
len = self.length
# both edges are all digits
bi = self.to_i(10)