Skip to content

Commit

Permalink
fix: rebase error
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed May 15, 2024
1 parent 8872479 commit dfcb677
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ const safeParseError = (data: string): { status: number } => {
}
};

// todo: may need to extend the error type
const safeParseError = (data: string): { status: number } => {
try {
return JSON.parse(data);
} catch {
return {
status: 500,
};
}
};

export function toTextStream(
eventSource: EventSource,
{ timeout, signal }: toTextStreamOptions = {}
Expand Down

0 comments on commit dfcb677

Please sign in to comment.