Skip to content

Commit

Permalink
remove some TODOs
Browse files Browse the repository at this point in the history
abrantesarthur committed Jan 14, 2025
1 parent ca7f66b commit 7692cd4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/oneTrust/helpers/flattenOneTrustAssessment.ts
Original file line number Diff line number Diff line change
@@ -184,7 +184,6 @@ const flattenOneTrustRisks = (
allRisks: (OneTrustEnrichedRisk[] | null)[],
prefix: string,
): any => {
// TODO: extract categories and other nested properties
const allRisksFlat = (allRisks ?? []).map((risks) => {
const { categories, rest: restRisks } = extractProperties(risks ?? [], [
'categories',
@@ -206,7 +205,6 @@ const flattenOneTrustQuestions = (
): any => {
const allSectionQuestionsFlat = allSectionQuestions.map(
(sectionQuestions) => {
// extract nested properties (TODO: try to make a helper for this!!!)
const {
rest: restSectionQuestions,
question: questions,
@@ -258,7 +256,6 @@ const flattenOneTrustSectionHeaders = (
};
};

// TODO: update type to be
const flattenOneTrustSections = (
sections: OneTrustEnrichedAssessmentSection[],
prefix: string,
@@ -280,7 +277,6 @@ const flattenOneTrustSections = (
return { ...sectionsFlat, ...headersFlat, ...questionsFlat };
};

// TODO: update type to be a Record<OneTrustAssessmentCsvHeader, string>
export const flattenOneTrustAssessment = (
combinedAssessment: OneTrustEnrichedAssessment,
): Record<string, string> => {

0 comments on commit 7692cd4

Please sign in to comment.