summaryrefslogtreecommitdiff
path: root/app/finders/todos_finder.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-06-19 18:24:14 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-06-28 17:51:05 +0100
commit1fbb7f977777de7c8808429693359c7a98ffdfcc (patch)
treebb872e346a9fb3b6c6d9001196ee931dba632387 /app/finders/todos_finder.rb
parent34f57b462bc14ad194cf890a4585d403bdbde55c (diff)
downloadgitlab-ce-1fbb7f977777de7c8808429693359c7a98ffdfcc.tar.gz
Removes redundant pending delete checks30708-stop-using-deleted-at-to-filter-namespaces
Diffstat (limited to 'app/finders/todos_finder.rb')
-rw-r--r--app/finders/todos_finder.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/finders/todos_finder.rb b/app/finders/todos_finder.rb
index 5a4c5767be5..3fe37c75381 100644
--- a/app/finders/todos_finder.rb
+++ b/app/finders/todos_finder.rb
@@ -78,7 +78,6 @@ class TodosFinder
end
def project
- return nil if @project&.pending_delete?
return @project if defined?(@project)
if project?
@@ -98,7 +97,7 @@ class TodosFinder
def projects(items)
item_project_ids = items.reorder(nil).select(:project_id)
- ProjectsFinder.new(current_user: current_user, project_ids_relation: item_project_ids).execute.without_deleted
+ ProjectsFinder.new(current_user: current_user, project_ids_relation: item_project_ids).execute
end
def type?