Skip to content

Commit 6e509a5

Browse files
refactor: change string literals in error messages
1 parent bf3ed99 commit 6e509a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

csaf_2_1/mandatoryTests/mandatoryTest_6_1_47.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ export function mandatoryTest_6_1_47(doc) {
8585
ctx.isValid = false
8686
ctx.errors.push({
8787
instancePath: `/vulnerabilities/${vulnerabilityIndex}/metrics/${metricIndex}/content/ssvc_v1/id`,
88-
message:
89-
'the ssvc id equals the `document/tracking/id` even the csaf document has multiple vulnerabilities',
88+
message: `the ssvc id equals the 'document/tracking/id'
89+
even the csaf document has multiple vulnerabilities `,
9090
})
9191
}
9292
} else {
@@ -95,8 +95,8 @@ export function mandatoryTest_6_1_47(doc) {
9595
ctx.isValid = false
9696
ctx.errors.push({
9797
instancePath: `/vulnerabilities/${vulnerabilityIndex}/metrics/${metricIndex}/content/ssvc_v1/id`,
98-
message:
99-
'the ssvc id does neither match the `cve` nor it matches the `text` of any item in the `ids` array',
98+
message: `the ssvc id does neither match the 'cve'
99+
nor it matches the 'text' of any item in the 'ids' array`,
100100
})
101101
}
102102
}

0 commit comments

Comments
 (0)