Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
9374b7eb
Commit
9374b7eb
authored
Mar 23, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid using the same name between methods and variables
parent
7124e5a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
lib/gitlab/email/receiver.rb
lib/gitlab/email/receiver.rb
+7
-7
No files found.
lib/gitlab/email/receiver.rb
View file @
9374b7eb
...
...
@@ -45,12 +45,12 @@ module Gitlab
note
=
create_note
(
reply
)
unless
note
.
persisted?
m
essage
=
"The comment could not be created for the following reasons:"
m
sg
=
"The comment could not be created for the following reasons:"
note
.
errors
.
full_messages
.
each
do
|
error
|
m
essage
<<
"
\n\n
-
#{
error
}
"
m
sg
<<
"
\n\n
-
#{
error
}
"
end
raise
InvalidNoteError
,
m
essage
raise
InvalidNoteError
,
m
sg
end
end
...
...
@@ -63,13 +63,13 @@ module Gitlab
end
def
reply_key
reply_
key
=
nil
key
=
nil
message
.
to
.
each
do
|
address
|
reply_
key
=
Gitlab
::
IncomingEmail
.
key_from_address
(
address
)
break
if
reply_
key
key
=
Gitlab
::
IncomingEmail
.
key_from_address
(
address
)
break
if
key
end
reply_
key
key
end
def
sent_notification
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment