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
8a1738c7
Commit
8a1738c7
authored
Mar 15, 2021
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove explicit nil
parent
2cb432c3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/gitlab/usage/metric_definition.rb
lib/gitlab/usage/metric_definition.rb
+4
-4
No files found.
lib/gitlab/usage/metric_definition.rb
View file @
8a1738c7
...
@@ -30,10 +30,10 @@ module Gitlab
...
@@ -30,10 +30,10 @@ module Gitlab
unless
skip_validation?
unless
skip_validation?
self
.
class
.
schemer
.
validate
(
attributes
.
stringify_keys
).
each
do
|
error
|
self
.
class
.
schemer
.
validate
(
attributes
.
stringify_keys
).
each
do
|
error
|
error_message
=
<<~
ERROR_MSG
error_message
=
<<~
ERROR_MSG
Error type:
#{
error
[
'type'
]
||
nil
}
Error type:
#{
error
[
'type'
]
}
Data:
#{
error
[
'data'
]
||
nil
}
Data:
#{
error
[
'data'
]
}
Path:
#{
error
[
'data_pointer'
]
||
nil
}
Path:
#{
error
[
'data_pointer'
]
}
Details:
#{
error
[
'details'
]
||
nil
}
Details:
#{
error
[
'details'
]
}
Metric file:
#{
path
}
Metric file:
#{
path
}
ERROR_MSG
ERROR_MSG
...
...
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