Skip to content

Commit

Permalink
fix(internal): resolve null instead of returning null (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar authored Sep 28, 2024
1 parent ced45fc commit 779cf08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/runtime/read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function read(data: Uint8Array): Promise<number | null> {
const buffer = process.stdin.read();

if (buffer === null) {
return null;
return resolve(null);
}

for (let i = 0; i < buffer.length; i++) {
Expand Down

0 comments on commit 779cf08

Please sign in to comment.