protect against EmailReplyTrimmer returning nil
This commit is contained in:
parent
03753ff146
commit
017579fe14
|
@ -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…
Reference in New Issue