Avoid calling freeze on already frozen strings in app/finders

This commit is contained in:
dineshpanda 2019-09-01 00:51:48 +05:30
parent df6f1dd93f
commit a3de0cd603
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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