Remove unnecessary assignment in String#upto

Co-authored-by: taiyoslime <t@iyosli.me>
Co-authored-by: smallkirby <ssmallkirby@gmail.com>
This commit is contained in:
n4o847
2020-10-12 16:50:22 +09:00
parent 8853b03591
commit 59af217779
@@ -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