mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-11 21:15:48 -05:00
Fix Style/SlicingWithRange cop (#25923)
This commit is contained in:
@@ -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