Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
r3inbowari committed Dec 25, 2023
1 parent 03d20fb commit a77cc28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions speedtest/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@ func (s *Server) HTTPPing(
resp, err := s.Context.doer.Do(req)
endTime := time.Since(sTime)
if err != nil {
io.Copy(io.Discard, resp.Body)
resp.Body.Close()
_, _ = io.Copy(io.Discard, resp.Body)
_ = resp.Body.Close()
failTimes++
continue
}
Expand Down

0 comments on commit a77cc28

Please sign in to comment.