Skip to content

Commit c892bc8

Browse files
committed
Minor fix based on comments
1 parent 9113412 commit c892bc8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/rhelv2/ovalutil/rpm.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ func ParseUnpatchedCVEComponents(def oval.Definition) map[string]string {
244244
state := resolution.State
245245
components := resolution.Components
246246

247-
for j := 0; j < len(components); j++ {
248-
component := components[j]
247+
for _, component := range components {
249248
stringSlice := strings.Split(component, "/")
250249
var componentName string
251250
if len(stringSlice) > 1 {

testdata/cve/RHEL-8-including-unpatched-test.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@
185185
</arithmetic>
186186
</local_variable>
187187
</variables>
188-
</oval_definitions>
188+
</oval_definitions>

0 commit comments

Comments
 (0)