Skip to content
Snippets Groups Projects
Commit 017579fe authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

protect against EmailReplyTrimmer returning nil

parent 03753ff1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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]$/, '')
Loading
Loading
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