diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-13 16:08:25 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-13 16:08:25 +0900 |
| commit | 3a3761ec699d7ae71d858024d8e6748f325f14a8 (patch) | |
| tree | 3b40e399e0b3c031b8e72df46118db971d9c6a50 | |
| parent | 5c7aa4f29934a8dc6534662d3e4c3b30c7f7ee5a (diff) | |
| download | mruby-3a3761ec699d7ae71d858024d8e6748f325f14a8.tar.gz mruby-3a3761ec699d7ae71d858024d8e6748f325f14a8.zip | |
string.c: remove unnecessary branch in the internal method.
| -rw-r--r-- | mrbgems/mruby-string-ext/mrblib/string.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mrbgems/mruby-string-ext/mrblib/string.rb b/mrbgems/mruby-string-ext/mrblib/string.rb index ff113dd95..84d566fda 100644 --- a/mrbgems/mruby-string-ext/mrblib/string.rb +++ b/mrbgems/mruby-string-ext/mrblib/string.rb @@ -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) |
