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
461622a2
Commit
461622a2
authored
Feb 02, 2021
by
Subashis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use safe navigation operator and DRY
parent
5482501f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
ee/app/graphql/types/vulnerability_type.rb
ee/app/graphql/types/vulnerability_type.rb
+1
-2
No files found.
ee/app/graphql/types/vulnerability_type.rb
View file @
461622a2
...
@@ -116,8 +116,7 @@ module Types
...
@@ -116,8 +116,7 @@ module Types
def
location
def
location
object_location
=
object
.
finding
&
.
location
object_location
=
object
.
finding
&
.
location
object_location
.
merge!
(
blob_path:
object
.
blob_path
).
compact!
object_location
&
.
merge
(
blob_path:
object
.
blob_path
,
report_type:
object
.
report_type
)
&
.
compact
object_location
.
merge
(
report_type:
object
.
report_type
)
end
end
def
scanner
def
scanner
...
...
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