1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2025-01-03 04:10:55 +00:00

Fix merge of skip check

This commit is contained in:
Liz Rice 2019-02-18 08:40:57 +00:00 committed by GitHub
parent 911e9051dc
commit db962a0ad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,7 @@ type Check struct {
// the results. // the results.
func (c *Check) Run() { func (c *Check) Run() {
// If check type is skip, force result to INFO
if c.Type == "skip" { if c.Type == "skip" {
c.State = INFO c.State = INFO
return return
@ -89,12 +90,6 @@ func (c *Check) Run() {
return return
} }
// If check type is skip, force result to INFO.
if c.Type == "skip" {
c.State = INFO
return
}
var out bytes.Buffer var out bytes.Buffer
var errmsgs string var errmsgs string