Skip to content

Commit 60ff118

Browse files
committed
use consistent modern looping
1 parent c4e0b56 commit 60ff118

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/site/next-data/generators/vulnerabilities.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { VULNERABILITIES_URL } from '#site/next.constants.mjs';
88
export function groupVulnerabilitiesByMajor(vulnerabilities) {
99
const grouped = {};
1010

11-
for (const vulnerability of vulnerabilities) {
11+
vulnerabilities.forEach(vulnerability => {
1212
// To avoid future confusion, rename 'ref' to 'url'
1313
vulnerability.url = vulnerability.ref;
1414
delete vulnerability.ref;
@@ -62,7 +62,7 @@ export function groupVulnerabilitiesByMajor(vulnerabilities) {
6262
}
6363
}
6464
});
65-
}
65+
});
6666

6767
return grouped;
6868
}

0 commit comments

Comments
 (0)