Commit 017579fe authored by http://jneen.net/'s avatar http://jneen.net/

protect against EmailReplyTrimmer returning nil

parent 03753ff1
......@@ -13,7 +13,7 @@ module Gitlab
encoding = body.encoding
body = EmailReplyTrimmer.trim(body)
body = EmailReplyTrimmer.trim(body) or return ""
# [jneen] not using /\s+$/ here because that deletes empty lines
body = body.gsub(/[ \t]$/, '')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment