Skip to content

Commit

Permalink
Combine the identical if-else branches in internal/transport/http2_se…
Browse files Browse the repository at this point in the history
…rver.go
  • Loading branch information
chengfang committed Jan 29, 2024
1 parent 5051eea commit b8b6bfb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/transport/http2_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,6 @@ func (t *http2Server) HandleStreams(ctx context.Context, handle func(*Stream)) {
}
continue
}
if err == io.EOF || err == io.ErrUnexpectedEOF {
t.Close(err)
return
}
t.Close(err)
return
}
Expand Down

0 comments on commit b8b6bfb

Please sign in to comment.