Change usage of gsub to delete, as per Code Climate/Rubocop recommendation (#1753)

feature-private-federation
Effy Elden 2017-04-14 20:50:00 +10:00 committed by Eugen
parent 290e8ef854
commit 8321884eef
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class Formatter
html = status.text
html = encode(html)
html = simple_format(html, {}, sanitize: false)
html = html.gsub(/\n/, '')
html = html.delete("\n")
html = link_urls(html)
html = link_mentions(html, status.mentions)
html = link_hashtags(html)