Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Mar 9, 2024
1 parent d853321 commit 8ff4e41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions writables/std.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class StdWritableStream extends WritableStream<Uint8Array> {
write: async (chunk) => {
await globalThis.Deno[stream].write(chunk);
},
}
};
break;
case "bun":
// Once https://github.com/oven-sh/bun/issues/3927 is completed we can use the node code for bun.
Expand All @@ -66,7 +66,9 @@ export class StdWritableStream extends WritableStream<Uint8Array> {
case "unknown": {
const decoder = new TextDecoder();
let buffer = "";
const write = stream === "stdout" ? originalConsole.log : originalConsole.error;
const write = stream === "stdout"
? originalConsole.log
: originalConsole.error;

sink = {
write: (chunk) => {
Expand Down

0 comments on commit 8ff4e41

Please sign in to comment.