Skip to content

Commit

Permalink
remove unreachable body closure
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Aug 29, 2024
1 parent fa03d9b commit 125a403
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions proxy/stream_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ func (instance *StreamInstance) LoadBalancer(previous *[]int, method string) (*h
if debug {
utils.SafeLogf("[DEBUG] Error fetching stream from %s: %s\n", url, err.Error())
}

if resp != nil && resp.Body != nil {
_, _ = io.Copy(io.Discard, resp.Body)
resp.Body.Close()
}
}

if allSkipped {
Expand Down

0 comments on commit 125a403

Please sign in to comment.