Skip to content
Snippets Groups Projects
Commit 512c870e authored by Gabriel Gizotti's avatar Gabriel Gizotti
Browse files

Remove unnecessary code from MergeRequest#issues_mentioned_but_not_closing

parent 78f221d1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -573,14 +573,12 @@ class MergeRequest < ActiveRecord::Base
closing_issues = []
 
if target_branch == project.default_branch
messages = [description]
ext = Gitlab::ReferenceExtractor.new(project, current_user)
ext.analyze(messages.join("\n"))
ext.analyze(description)
 
issues = ext.issues
closing_issues = Gitlab::ClosingIssueExtractor.new(project, current_user).
closed_by_message(messages.join("\n"))
closed_by_message(description)
end
 
issues - closing_issues
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