Commit dc6e2c7
authored
reporter: Fix io.EOF handling (#3010)
The way the if statement was written, if there is an io.EOF error, then
we still first try reading the response object, however, in the io.EOF
case it's null, therefore the if statement needs to be swapped around so
it would never try to read something on the nil pointer if an io.EOF
error is returned.1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| |||
0 commit comments