Skip to content
Snippets Groups Projects
Commit 8321884e authored by Effy Elden's avatar Effy Elden Committed by Eugen
Browse files

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

parent 290e8ef8
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment