Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2016-11-18 12:57:37 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2016-12-21 20:51:41 +0300
commit017579fe149e976fb0b2b21b234ea923913cadb2 (patch)
treee1e4c00591f1c11ae1568d19cccfab174badef07 /lib/gitlab/email
parent03753ff146a448eb66e7af12f56dcc4cf11922d9 (diff)
protect against EmailReplyTrimmer returning nil
Diffstat (limited to 'lib/gitlab/email')
-rw-r--r--lib/gitlab/email/reply_parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/email/reply_parser.rb b/lib/gitlab/email/reply_parser.rb
index ed8c1cd09f8..e714923c4d8 100644
--- a/lib/gitlab/email/reply_parser.rb
+++ b/lib/gitlab/email/reply_parser.rb
@@ -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]$/, '')