summaryrefslogtreecommitdiff
path: root/lib/gitlab/closing_issue_extractor.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-27 11:37:45 +0100
committerDouwe Maan <douwe@gitlab.com>2015-04-02 10:53:38 +0200
commitb1ef1aa59f5ccb78be6d2462b56ed6bafebe65c0 (patch)
tree432109a5a23dca4092410b24f518d72a6e07dc7a /lib/gitlab/closing_issue_extractor.rb
parent254698d6b8628b5ce57597526d6b34f332c22903 (diff)
downloadgitlab-ce-b1ef1aa59f5ccb78be6d2462b56ed6bafebe65c0.tar.gz
Slightly refactor ReferenceExtractor.
Diffstat (limited to 'lib/gitlab/closing_issue_extractor.rb')
-rw-r--r--lib/gitlab/closing_issue_extractor.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/closing_issue_extractor.rb b/lib/gitlab/closing_issue_extractor.rb
index a9fd59f03d9..5643d60c807 100644
--- a/lib/gitlab/closing_issue_extractor.rb
+++ b/lib/gitlab/closing_issue_extractor.rb
@@ -9,9 +9,9 @@ module Gitlab
md = message.scan(ISSUE_CLOSING_REGEX)
md.each do |ref|
- extractor = Gitlab::ReferenceExtractor.new
- extractor.analyze(ref[0], project)
- issues += extractor.issues_for(project)
+ extractor = Gitlab::ReferenceExtractor.new(project)
+ extractor.analyze(ref[0])
+ issues += extractor.issues
end
end