Skip to content

Commit

Permalink
Update main.worker.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue authored Apr 20, 2024
1 parent cba052d commit 04f6081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const stdin = (): number | null => {
console.error("Try to fetch exhausted stdin");
return null;
}
const nextChunk = /** @type {string} */ stdinChunks.shift();
const nextChunk = stdinChunks.shift()!;
currentStdinChunk.push(...textEncoder.encode(nextChunk), null);
}
return currentStdinChunk.shift()!;
Expand Down

0 comments on commit 04f6081

Please sign in to comment.