Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-06-19 20:24:14 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-06-28 19:51:05 +0300
commit1fbb7f977777de7c8808429693359c7a98ffdfcc (patch)
treebb872e346a9fb3b6c6d9001196ee931dba632387 /app/finders/todos_finder.rb
parent34f57b462bc14ad194cf890a4585d403bdbde55c (diff)
Removes redundant pending delete checks
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?