Skip to content

Commit

Permalink
Remove empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed Jun 11, 2018
1 parent 9345d55 commit 6134d71
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func (req *multiRequest) close() {

// handleReply is responsible for adding a result to the result set
func (req *multiRequest) handleReply(_ error, addr net.IP, tRecv *time.Time) {

// avoid blocking
go func() {
req.mtx.RLock()
Expand Down
2 changes: 0 additions & 2 deletions sending.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ func (pinger *Pinger) PingAttempts(destination *net.IPAddr, timeout time.Duratio
} else {
for i := 0; i < attempts; i++ {
rtt, err = pinger.Ping(destination, timeout)

if err == nil {
break // success
}
Expand Down Expand Up @@ -52,7 +51,6 @@ func (pinger *Pinger) PingContext(ctx context.Context, destination *net.IPAddr)
case <-ctx.Done():
// dequeue request
pinger.removeRequest(seq)

err = &timeoutError{}
}

Expand Down

0 comments on commit 6134d71

Please sign in to comment.