Skip to content

Commit

Permalink
fixing comment typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Thor committed Apr 15, 2019
1 parent fb5e86c commit 27e3cfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prober/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func chooseProtocol(ctx context.Context, IPProtocol string, fallbackIPProtocol b
return nil, 0.0, err
}

// Return the IP in the requested protocol format
// Return the IP in the requested protocol.
var fallback *net.IPAddr
for _, ip := range ips {
switch IPProtocol {
Expand All @@ -90,12 +90,12 @@ func chooseProtocol(ctx context.Context, IPProtocol string, fallbackIPProtocol b
}
}

// Unable to find ip and no fallback set
// Unable to find ip and no fallback set.
if fallback == nil {
return nil, 0.0, fmt.Errorf("unable to find ip; no fallback")
}

// Use fallback ip protocol
// Use fallback ip protocol.
if fallbackProtocol == "ip4" {
probeIPProtocolGauge.Set(4)
} else {
Expand Down

0 comments on commit 27e3cfd

Please sign in to comment.