summaryrefslogtreecommitdiff
path: root/app/finders/todos_finder.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/finders/todos_finder.rb')
-rw-r--r--app/finders/todos_finder.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/finders/todos_finder.rb b/app/finders/todos_finder.rb
index d001e18fea9..e2dcc5f88fa 100644
--- a/app/finders/todos_finder.rb
+++ b/app/finders/todos_finder.rb
@@ -21,9 +21,9 @@ class TodosFinder
requires_cross_project_access unless: -> { project? }
- NONE = '0'.freeze
+ NONE = "0"
- TODO_TYPES = Set.new(%w(Issue MergeRequest Epic)).freeze
+ TODO_TYPES = Set.new(%w[Issue MergeRequest Epic]).freeze
attr_accessor :current_user, :params
@@ -165,7 +165,7 @@ class TodosFinder
end
def by_state(items)
- if params[:state].to_s == 'done'
+ if params[:state].to_s == "done"
items.done
else
items.pending