travis: start using ineffassign

It actually found two bugs.
pull/1/head
Marc-Antoine Ruel 7 years ago
parent a50f826642
commit 6cd1bba854

@ -131,6 +131,9 @@ func (c *Conn) readData(r *bufio.Reader) error {
switch cmd {
case "SIGHUP":
_, err = c.w.Write([]byte("LIST\n"))
if err != nil {
return err
}
default:
// In case of any error, ignore the rest.
line, err := read(r)

@ -384,7 +384,7 @@ func (r *Dev) write(blockAddr byte, data []byte) error {
if backLen != 4 || read[0]&0x0F != 0x0A {
err = wrapf("can't write data")
}
return nil
return err
}
// preAccess calculates CRC of the block address to be accessed and sends it to the device for verification.

Loading…
Cancel
Save