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
e8a7ac80
Commit
e8a7ac80
authored
May 12, 2020
by
Markus Koller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment to justify the use of a case statement
parent
790793d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lib/gitlab/url_builder.rb
lib/gitlab/url_builder.rb
+3
-0
No files found.
lib/gitlab/url_builder.rb
View file @
e8a7ac80
...
@@ -11,6 +11,9 @@ module Gitlab
...
@@ -11,6 +11,9 @@ module Gitlab
class
<<
self
class
<<
self
include
ActionView
::
RecordIdentifier
include
ActionView
::
RecordIdentifier
# Using a case statement here is preferable for readability and maintainability.
# See discussion in https://gitlab.com/gitlab-org/gitlab/-/issues/217397
#
# rubocop:disable Metrics/CyclomaticComplexity
# rubocop:disable Metrics/CyclomaticComplexity
def
build
(
object
,
**
options
)
def
build
(
object
,
**
options
)
# Objects are sometimes wrapped in a BatchLoader instance
# Objects are sometimes wrapped in a BatchLoader instance
...
...
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