all: Revert the underscore sillyness
This commit is contained in:
@@ -132,8 +132,8 @@ func getTCPConnectionPair() (net.Conn, net.Conn, error) {
|
||||
}
|
||||
|
||||
// Set the buffer sizes etc as usual
|
||||
_ = dialer.SetTCPOptions(conn0)
|
||||
_ = dialer.SetTCPOptions(conn1)
|
||||
dialer.SetTCPOptions(conn0)
|
||||
dialer.SetTCPOptions(conn1)
|
||||
|
||||
return conn0, conn1, nil
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ func repeatedDeviceID(v byte) (d DeviceID) {
|
||||
func NewDeviceID(rawCert []byte) DeviceID {
|
||||
var n DeviceID
|
||||
hf := sha256.New()
|
||||
_, _ = hf.Write(rawCert)
|
||||
hf.Write(rawCert)
|
||||
hf.Sum(n[:0])
|
||||
return n
|
||||
}
|
||||
|
||||
@@ -69,8 +69,8 @@ func TestClose(t *testing.T) {
|
||||
t.Error("Ping should not return true")
|
||||
}
|
||||
|
||||
_ = c0.Index("default", nil)
|
||||
_ = c0.Index("default", nil)
|
||||
c0.Index("default", nil)
|
||||
c0.Index("default", nil)
|
||||
|
||||
if _, err := c0.Request("default", "foo", 0, 0, nil, 0, false); err == nil {
|
||||
t.Error("Request should return an error")
|
||||
@@ -225,8 +225,8 @@ func testMarshal(t *testing.T, prefix string, m1, m2 message) bool {
|
||||
bs1, _ := json.MarshalIndent(m1, "", " ")
|
||||
bs2, _ := json.MarshalIndent(m2, "", " ")
|
||||
if !bytes.Equal(bs1, bs2) {
|
||||
_ = ioutil.WriteFile(prefix+"-1.txt", bs1, 0644)
|
||||
_ = ioutil.WriteFile(prefix+"-2.txt", bs2, 0644)
|
||||
ioutil.WriteFile(prefix+"-1.txt", bs1, 0644)
|
||||
ioutil.WriteFile(prefix+"-2.txt", bs2, 0644)
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user