Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
goastler committed Jun 26, 2024
1 parent 054f9a8 commit b79af6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/typechain-polkadot/src/utils/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
* @param json - JSON string
*/
export function minimizeJson(json: string): string {
// remove whitespace as it causes issues when parsing JSON
return JSON.stringify(JSON.parse(json)).replace(/\\n/g, '').replace(/\\r/g, '').replace(/\\t/g, '')
// remove whitespace as it causes issues when parsing JSON
return JSON.stringify(JSON.parse(json)).replace(/\\n/g, '').replace(/\\r/g, '').replace(/\\t/g, '');
}

0 comments on commit b79af6c

Please sign in to comment.