Skip to content

Commit

Permalink
fix tr-pull-ot cli (#382)
Browse files Browse the repository at this point in the history
* fix tr-pull-ot cli

* bump package
  • Loading branch information
abrantesarthur authored Jan 27, 2025
1 parent e461409 commit f6640a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Transcend Inc.",
"name": "@transcend-io/cli",
"description": "Small package containing useful typescript utilities.",
"version": "6.14.1",
"version": "6.14.2",
"homepage": "https://github.com/transcend-io/cli",
"repository": {
"type": "git",
Expand Down
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 f6640a7

Please sign in to comment.