Skip to content
Snippets Groups Projects
Commit 9374b7eb authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Avoid using the same name between methods and variables

parent 7124e5a4
No related branches found
No related tags found
No related merge requests found
Loading
@@ -45,12 +45,12 @@ module Gitlab
Loading
@@ -45,12 +45,12 @@ module Gitlab
note = create_note(reply) note = create_note(reply)
   
unless note.persisted? unless note.persisted?
message = "The comment could not be created for the following reasons:" msg = "The comment could not be created for the following reasons:"
note.errors.full_messages.each do |error| note.errors.full_messages.each do |error|
message << "\n\n- #{error}" msg << "\n\n- #{error}"
end end
   
raise InvalidNoteError, message raise InvalidNoteError, msg
end end
end end
   
Loading
@@ -63,13 +63,13 @@ module Gitlab
Loading
@@ -63,13 +63,13 @@ module Gitlab
end end
   
def reply_key def reply_key
reply_key = nil key = nil
message.to.each do |address| message.to.each do |address|
reply_key = Gitlab::IncomingEmail.key_from_address(address) key = Gitlab::IncomingEmail.key_from_address(address)
break if reply_key break if key
end end
   
reply_key key
end end
   
def sent_notification def sent_notification
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment