0
0
Fork 0

Rubocop fix: Perfomance/UnfreezeString (#26217)

This commit is contained in:
Matt Jankowski 2023-07-28 17:11:05 -04:00 committed by GitHub
parent 4d1b67f664
commit 30f5ec7303
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 33 additions and 18 deletions

View file

@ -75,7 +75,7 @@ class TextFormatter
entity[:indices].first
end
result = ''.dup
result = +''
last_index = entities.reduce(0) do |index, entity|
indices = entity[:indices]