fix rubocop failures

This commit is contained in:
http://jneen.net/ 2016-11-10 17:40:53 +09:00
parent f7b0692912
commit 1734124433
2 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,10 @@ module Gitlab
end
def filtered_html
@filtered_html ||= (filter_replies!; document.inner_html)
@filtered_html ||= begin
filter_replies!
document.inner_html
end
end
def filtered_text

View File

@ -209,7 +209,6 @@ describe Gitlab::Email::ReplyParser, lib: true do
it "properly renders html-only email from MS Outlook" do
expect(test_parse_body(fixture_file("emails/outlook_html.eml"))).to eq("Microsoft Outlook 2010")
end
end
end