Remove unnecessary code from MergeRequest#issues_mentioned_but_not_closing
This commit is contained in:
parent
78f221d12e
commit
512c870ed4
1 changed files with 2 additions and 4 deletions
|
@ -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…
Reference in a new issue