Rubocop fix: Perfomance/UnfreezeString
(#26217)
This commit is contained in:
@@ -75,7 +75,7 @@ class TextFormatter
|
||||
entity[:indices].first
|
||||
end
|
||||
|
||||
result = ''.dup
|
||||
result = +''
|
||||
|
||||
last_index = entities.reduce(0) do |index, entity|
|
||||
indices = entity[:indices]
|
||||
|
Reference in New Issue
Block a user