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
1f0ac78e
Commit
1f0ac78e
authored
Oct 17, 2019
by
mo khan
Committed by
Lin Jen-Shin
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment to describe guard clause
parent
75602aba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ee/app/services/security/sync_reports_to_approval_rules_service.rb
...rvices/security/sync_reports_to_approval_rules_service.rb
+2
-0
No files found.
ee/app/services/security/sync_reports_to_approval_rules_service.rb
View file @
1f0ac78e
...
@@ -38,6 +38,8 @@ module Security
...
@@ -38,6 +38,8 @@ module Security
def
sync_vulnerability_rules
def
sync_vulnerability_rules
reports
=
pipeline
.
security_reports
reports
=
pipeline
.
security_reports
# If we have some reports, then we want to sync them early;
# If we don't have reports, then we should wait until pipeline stops.
return
if
reports
.
empty?
&&
!
pipeline
.
complete?
return
if
reports
.
empty?
&&
!
pipeline
.
complete?
return
if
reports
.
violates_default_policy?
return
if
reports
.
violates_default_policy?
...
...
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