Skip to content

Commit 9c013b1

Browse files
Tweak comment
1 parent 5aef6b9 commit 9c013b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/snaps-utils/src/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ export function parseJson<Type extends Json = Json>(json: string) {
3232
*/
3333
export function getJsonSizeUnsafe(value: Json, encode = false): number {
3434
const json = JSON.stringify(value);
35-
// We intentionally don't use `TextEncoder` because of bad performance on React Native.
35+
// We intentionally don't use `TextEncoder` by default because of bad performance on React Native.
3636
return encode ? new TextEncoder().encode(json).byteLength : json.length;
3737
}

0 commit comments

Comments
 (0)