Fix Style/SlicingWithRange cop (#25923)
This commit is contained in:
1 parent
658742b3cd
commit
b8b2470cf8
12 files changed
+13
-28
No files matched your search
@@ -53,7 +53,7 @@ class StatusLengthValidator < ActiveModel::Validator
|
||||
entity[:indices].last
|
||||
end
|
||||
|
||||
result << str[last_index..-1]
|
||||
result << str[last_index..]
|
||||
result
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user