make it one sentence
This commit is contained in:
parent
cca55ed764
commit
121611834f
@ -271,8 +271,7 @@ func AnalyzeLocalImage(imageName string, minSeverity types.Priority, endpoint, m
|
|||||||
} else if !hasVisibleVulnerabilities {
|
} else if !hasVisibleVulnerabilities {
|
||||||
fmt.Printf("%s No vulnerabilities matching the minimum severity level were detected in your image\n", color.YellowString("NOTE:"))
|
fmt.Printf("%s No vulnerabilities matching the minimum severity level were detected in your image\n", color.YellowString("NOTE:"))
|
||||||
} else {
|
} else {
|
||||||
errorTotal := errors.New("total Errors: "+strconv.Itoa(len(vulnerabilities)))
|
return fmt.Errorf("A total of %d vulnerabilities have been detected in your image", len(vulnerabilities))
|
||||||
return errorTotal
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user