Commit 59af2177 authored by n4o847's avatar n4o847

Remove unnecessary assignment in String#upto

Co-authored-by: default avatartaiyoslime <t@iyosli.me>
Co-authored-by: default avatarsmallkirby <ssmallkirby@gmail.com>
parent 8853b035
......@@ -422,7 +422,6 @@ class String
# both edges are all digits
bi = self.to_i(10)
ei = max.to_i(10)
len = self.length
if (bi > 0 or bi == "0"*len) and (ei > 0 or ei == "0"*maxlen)
while bi <= ei
break if exclusive and bi == ei
......
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