mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
string.c: remove unnecessary branch in the internal method.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user