derp/derphttp: appease staticcheck

This commit is contained in:
Brad Fitzpatrick 2020-03-05 12:34:57 -08:00
parent 2cff9016e4
commit cf4aacde57

View File

@ -155,7 +155,7 @@ func (c *Client) connect(ctx context.Context, caller string) (client *derp.Clien
tcpConn, err = d.DialContext(ctx, "tcp", net.JoinHostPort(hostOrIP, urlPort(c.url)))
if err != nil {
return nil, fmt.Errorf("Dial of %q: %v", host, err)
return nil, fmt.Errorf("dial of %q: %v", host, err)
}
// Now that we have a TCP connection, force close it.