Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a3de0cd6
Commit
a3de0cd6
authored
Sep 01, 2019
by
dineshpanda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid calling freeze on already frozen strings in app/finders
parent
df6f1dd9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/finders/issuable_finder.rb
app/finders/issuable_finder.rb
+3
-3
app/finders/todos_finder.rb
app/finders/todos_finder.rb
+1
-1
No files found.
app/finders/issuable_finder.rb
View file @
a3de0cd6
...
...
@@ -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
...
...
app/finders/todos_finder.rb
View file @
a3de0cd6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment