diff options
Diffstat (limited to 'packages/taler-util/src/helpers.ts')
-rw-r--r-- | packages/taler-util/src/helpers.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/taler-util/src/helpers.ts b/packages/taler-util/src/helpers.ts index fb0cd8a2b..53a9a43d4 100644 --- a/packages/taler-util/src/helpers.ts +++ b/packages/taler-util/src/helpers.ts @@ -68,11 +68,7 @@ export function canonicalJson(obj: any): string { return "\\u" + ("0000" + chr.charCodeAt(0).toString(16)).substr(-4); }); } - if ( - typeof obj === "number" || - typeof obj === "boolean" || - obj === null - ) { + if (typeof obj === "number" || typeof obj === "boolean" || obj === null) { return JSON.stringify(obj); } if (Array.isArray(obj)) { |