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:
authorLin Jen-Shin <godfat@godfat.org>2016-05-21 19:46:27 +0300
committerLin Jen-Shin <godfat@godfat.org>2016-05-21 19:46:27 +0300
commitc64cd113ccd16fa210f9ea2808deb044aadc8f61 (patch)
tree5cf61ae16d1dbd4066f9765afd157ff88f929f53 /lib/gitlab/email/handler/base_handler.rb
parent75415663f84ac006c5a4d5a6896ece50c299c03e (diff)
Add ! for verify_record! because it could raise
Diffstat (limited to 'lib/gitlab/email/handler/base_handler.rb')
-rw-r--r--lib/gitlab/email/handler/base_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/email/handler/base_handler.rb b/lib/gitlab/email/handler/base_handler.rb
index 230d13feea9..dcbad5bdb29 100644
--- a/lib/gitlab/email/handler/base_handler.rb
+++ b/lib/gitlab/email/handler/base_handler.rb
@@ -42,7 +42,7 @@ module Gitlab
end.join
end
- def verify_record(record, exception, error_title)
+ def verify_record!(record, exception, error_title)
return if record.persisted?
msg = error_title + record.errors.full_messages.map do |error|