Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
ilteoood committed Dec 6, 2023
1 parent c531c65 commit c20f904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/merge.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const readData = <T>(reader: ReadableStreamDefaultReader<T>) => reader.read();

const isStreamNotDone = <T>(result: ReadableStreamReadResult<T>) => !result.done;
const isStreamNotDone = <T>(result: ReadableStreamReadResult<T>) =>
!result.done;

export const merge = <T>(...readableStreams: ReadableStream<T>[]) => {
const readers = (readableStreams ?? []).map((stream) => stream.getReader());
Expand Down

0 comments on commit c20f904

Please sign in to comment.