Skip to content

Commit b08a846

Browse files
chore(internal): streaming refactors (#1261)
1 parent 14784f9 commit b08a846

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/streaming.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ export class Stream<Item> implements AsyncIterable<Item> {
3838
if (sse.data.startsWith('[DONE]')) {
3939
done = true;
4040
continue;
41-
}
42-
43-
if (sse.event === null) {
41+
} else {
4442
let data;
4543

4644
try {

0 commit comments

Comments
 (0)