Skip to content

Commit

Permalink
[Heartbeat] Fix NPE in HTTP responses. (elastic#10082)
Browse files Browse the repository at this point in the history
This removes an accidentally duplicated line that broke the error check on the following line.

I suspect this was caused by git merging incorrectly.

Fixes elastic#10066
  • Loading branch information
andrewvc authored Jan 15, 2019
1 parent 0044a06 commit f10ad90
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion heartbeat/monitors/active/http/simple_transp.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ func (t *SimpleTransport) readResponse(
) (*http.Response, error) {
reader := bufio.NewReader(conn)
resp, err := http.ReadResponse(reader, req)
resp.Body = comboConnReadCloser{conn, resp.Body}
if err != nil {
return nil, err
}
Expand Down

0 comments on commit f10ad90

Please sign in to comment.