Skip to content

Commit

Permalink
fix tr-pull-ot cli
Browse files Browse the repository at this point in the history
  • Loading branch information
abrantesarthur committed Jan 27, 2025
1 parent e461409 commit 84a0a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oneTrust/helpers/oneTrustAssessmentToJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export const oneTrustAssessmentToJson = ({
jsonEntry = '[\n';
}

const stringifiedAssessment = JSON.stringify(assessment, null, 2);
const stringifiedAssessment = JSON.stringify(assessment);

// Add comma for all items except the last one
const comma = index < total - 1 ? ',' : '';
const comma = index < total - 1 && !wrap ? ',' : '';

// write to file
jsonEntry = jsonEntry + stringifiedAssessment + comma;
Expand Down

0 comments on commit 84a0a82

Please sign in to comment.