summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-09-19 11:16:43 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-09-19 11:16:43 +0530
commitb9bf23e07cf886825fc9b0038caae4bfd78d3c05 (patch)
tree2684e479c2b3d431f7ee4e0238d71aaedee1b762 /app/models/issue.rb
parentedb38d69cc6cffef46b6c7b957ad97ce213173cf (diff)
downloadgitlab-ce-b9bf23e07cf886825fc9b0038caae4bfd78d3c05.tar.gz
Remove extraneous code that was previously added for performance.
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index fd66a7a2714..371b3f4ee73 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -201,8 +201,8 @@ class Issue < ActiveRecord::Base
# From all notes on this issue, we'll select the system notes about linked
# merge requests. Of those, the MRs closing `self` are returned.
- def closed_by_merge_requests(current_user = nil, check_if_open: true)
- return [] if !open? && check_if_open
+ def closed_by_merge_requests(current_user = nil)
+ return [] if !open?
ext = all_references(current_user)