Skip to content
Snippets Groups Projects
Commit bddaee74 authored by Stan Hu's avatar Stan Hu
Browse files

Merge branch 'remove-unnecessary-freeze-in-app-finders' into 'master'

Avoid calling freeze on already frozen strings in app/finders

See merge request gitlab-org/gitlab-ce!32634
parents 0b10a834 a3de0cd6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -40,11 +40,11 @@ class IssuableFinder
requires_cross_project_access unless: -> { project? }
 
# This is used as a common filter for None / Any
FILTER_NONE = 'none'.freeze
FILTER_ANY = 'any'.freeze
FILTER_NONE = 'none'
FILTER_ANY = 'any'
 
# This is used in unassigning users
NONE = '0'.freeze
NONE = '0'
 
attr_accessor :current_user, :params
 
Loading
Loading
Loading
Loading
@@ -21,7 +21,7 @@ class TodosFinder
 
requires_cross_project_access unless: -> { project? }
 
NONE = '0'.freeze
NONE = '0'
 
TODO_TYPES = Set.new(%w(Issue MergeRequest Epic)).freeze
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment