Skip to content

Commit

Permalink
Merge pull request #2770 from IntersectMBO/develop
Browse files Browse the repository at this point in the history
chore: lint format
  • Loading branch information
MSzalowski authored Jan 27, 2025
2 parents 857c873 + 5400abe commit 631e886
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion govtool/metadata-validation/src/utils/parseMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export const parseMetadata = (body: Record<string, unknown>) => {

Object.keys(body).forEach((key) => {
if (key === 'references') {
const parsedReferences = (body[key] as Record<string, unknown>[]).map((reference) => parseMetadata(reference));
const parsedReferences = (body[key] as Record<string, unknown>[]).map(
(reference) => parseMetadata(reference),
);
metadata[key] = parsedReferences;
} else {
metadata[key] = getFieldValue(body, key);
Expand Down

0 comments on commit 631e886

Please sign in to comment.