diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-19 11:16:43 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-19 11:16:43 +0530 |
commit | b9bf23e07cf886825fc9b0038caae4bfd78d3c05 (patch) | |
tree | 2684e479c2b3d431f7ee4e0238d71aaedee1b762 /app/models/issue.rb | |
parent | edb38d69cc6cffef46b6c7b957ad97ce213173cf (diff) | |
download | gitlab-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.rb | 4 |
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) |