summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-04-21 18:49:08 +0200
committerRémy Coutable <remy@rymai.me>2016-04-21 18:49:08 +0200
commit5e37d02d0ebd64249186577e306b7c502953a2e1 (patch)
tree0e976119858593f193295ae7c3ed6f96ea0c2b25 /app/finders
parentd2bf73b7763a4cf51d3319cf8056534a2ce22fda (diff)
downloadgitlab-ce-5e37d02d0ebd64249186577e306b7c502953a2e1.tar.gz
Remove the `.distinct` when finding issues15465-fix-sort-by-due-date
This is not needed anymore after !3815. Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/issuable_finder.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb
index 93aa30b3255..f00f3f709e9 100644
--- a/app/finders/issuable_finder.rb
+++ b/app/finders/issuable_finder.rb
@@ -278,9 +278,7 @@ class IssuableFinder
end
end
- # When filtering by multiple labels we may end up duplicating issues (if one
- # has multiple labels). This ensures we only return unique issues.
- items.distinct
+ items
end
def by_due_date(items)