summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-03-31 22:52:17 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-05-16 21:27:16 +0000
commitaac297adba87a8b4fecbc064d73f9b4577586f97 (patch)
tree689501b34f5b595f2c537ea93a4f6ed7ac391652
parent68b5ded0565f3899753173cd294f77607c462dcf (diff)
downloadgitlab-ce-aac297adba87a8b4fecbc064d73f9b4577586f97.tar.gz
Update style as create_note
-rw-r--r--lib/gitlab/email/receiver.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/gitlab/email/receiver.rb b/lib/gitlab/email/receiver.rb
index 0792116ed2d..d67e96ff139 100644
--- a/lib/gitlab/email/receiver.rb
+++ b/lib/gitlab/email/receiver.rb
@@ -61,9 +61,12 @@ module Gitlab
def process_create_issue
validate_permission(message_sender, message_project, :create_issue)
- issue = Issues::CreateService.new(message_project, message_sender,
- title: message.subject,
- description: handle_reply(message_project)).execute
+ issue = Issues::CreateService.new(
+ message_project,
+ message_sender,
+ title: message.subject,
+ description: handle_reply(message_project)
+ ).execute
unless issue.persisted?
msg = "The issue could not be created for the following reasons:"