multi: fix most obvious linter errors

This commit is contained in:
Oliver Gugger 2019-10-07 17:29:24 +02:00
parent 1cdb233a00
commit 36838cf7f4
No known key found for this signature in database
GPG key ID: 8E4256593F177720
21 changed files with 41 additions and 50 deletions

View file

@ -127,7 +127,10 @@ func deserializeLoopInContract(value []byte) (*LoopInContract, error) {
return nil, err
}
binary.Read(r, byteOrder, &contract.AmountRequested)
err = binary.Read(r, byteOrder, &contract.AmountRequested)
if err != nil {
return nil, err
}
n, err := r.Read(contract.SenderKey[:])
if err != nil {

View file

@ -84,7 +84,10 @@ func deserializeLoopOutContract(value []byte, chainParams *chaincfg.Params) (
return nil, err
}
binary.Read(r, byteOrder, &contract.AmountRequested)
err = binary.Read(r, byteOrder, &contract.AmountRequested)
if err != nil {
return nil, err
}
contract.PrepayInvoice, err = wire.ReadVarString(r, 0)
if err != nil {