Fix Style/SlicingWithRange cop (#25923)

This commit is contained in:
Matt Jankowski
2023-07-12 04:03:06 -04:00
committed by GitHub
parent 658742b3cd
commit b8b2470cf8
12 changed files with 13 additions and 28 deletions

View File

@ -53,7 +53,7 @@ class StatusLengthValidator < ActiveModel::Validator
entity[:indices].last
end
result << str[last_index..-1]
result << str[last_index..]
result
end
end