summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Gizotti <gabriel@gizotti.com>2016-11-28 19:06:18 +1000
committerGabriel Gizotti <gabriel@gizotti.com>2016-12-16 19:13:17 +1000
commit512c870ed46b5e441fd0b8daa8bd9cab449f7ac0 (patch)
tree889552486cb018dc57556072cdabd6c877442bfa
parent78f221d12e28b6ea10f8fbc7f83fa39caaad05d0 (diff)
downloadgitlab-ce-512c870ed46b5e441fd0b8daa8bd9cab449f7ac0.tar.gz
Remove unnecessary code from MergeRequest#issues_mentioned_but_not_closing
-rw-r--r--app/models/merge_request.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb
index 5a5b8bd6010..dba0c463fd6 100644
--- a/app/models/merge_request.rb
+++ b/app/models/merge_request.rb
@@ -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