Skip to content

Commit 1b52f00

Browse files
committed
s/serialized/normalized in normalizeToSize
1 parent fa0f8d3 commit 1b52f00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/utils/src/normalize.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ export function normalizeToSize<T>(
4141
// 100kB, as 200kB is max payload size, so half sounds reasonable
4242
maxSize: number = 100 * 1024,
4343
): T {
44-
const serialized = normalize(object, depth);
44+
const normalized = normalize(object, depth);
4545

46-
if (jsonSize(serialized) > maxSize) {
46+
if (jsonSize(normalized) > maxSize) {
4747
return normalizeToSize(object, depth - 1, maxSize);
4848
}
4949

50-
return serialized as T;
50+
return normalized as T;
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)