Skip to content

Commit

Permalink
Simplify String() method
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Sep 19, 2024
1 parent 9b52ee2 commit 290d2e4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ func decodeSSEEvent(b []byte) (*SSEEvent, error) {

func (e *SSEEvent) String() string {
switch e.Type {
case SSETypeDone:
return ""
case SSETypeError:
return e.Data
case SSETypeLogs:
return e.Data
case SSETypeOutput:
return e.Data
default:
Expand Down

0 comments on commit 290d2e4

Please sign in to comment.