Skip to content

Commit 76e45cc

Browse files
refactor: simplify implementation
1 parent c0f7fe3 commit 76e45cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

csaf_2_1/mandatoryTests/mandatoryTest_6_1_48.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ export function mandatoryTest_6_1_48(doc) {
9898

9999
doc.vulnerabilities.forEach((vulnerability, vulnerabilityIndex) => {
100100
vulnerability.metrics?.forEach((metric, metricIndex) => {
101-
const selections = metric.content?.ssvc_v1?.selections
102-
const selectionsWithRegisteredNamespace = selections?.filter(
103-
(s) =>
104-
s.namespace !== undefined &&
105-
registeredSsvcNamespaces.includes(s.namespace)
106-
)
101+
const selectionsWithRegisteredNamespace =
102+
metric.content?.ssvc_v1?.selections?.filter(
103+
(s) =>
104+
s.namespace !== undefined &&
105+
registeredSsvcNamespaces.includes(s.namespace)
106+
)
107107
selectionsWithRegisteredNamespace?.forEach(
108108
(selection, selectionIndex) => {
109109
// check if a decision point with these properties exists

0 commit comments

Comments
 (0)