Skip to content

Commit d8245fd

Browse files
committed
Optimized serializer function call
1 parent d196691 commit d8245fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sjs.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ const sjs = (schema: SjsSchema): SjsSerializer => {
2727

2828
for (let i = 0; i < queueLength; ++i) {
2929
const { serializer, find } = queue[i]!;
30-
const raw = find(obj);
3130

32-
temp += selectChunk(serializer(raw), i);
31+
temp += selectChunk(serializer(find(obj)), i);
3332
}
3433

3534
const { flag, pure, prevUndef } = chunks[chunkLength]!;

0 commit comments

Comments
 (0)