Skip to content

Commit

Permalink
fix(internal): resolve null instead of returning null
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Sep 28, 2024
1 parent dd9aab0 commit 512fc82
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 512fc82

Please sign in to comment.