Merge pull request #3502 from joostjager/err-returns

multi: fix dropped errors
This commit is contained in:
Conner Fromknecht authored and GitHub committed 2019-09-13 11:24:04 -07:00
commit 72c5d11a1c
6 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -961,7 +961,7 @@ func decodeIncomingResolution(r io.Reader, h *lnwallet.IncomingHtlcResolution) e
func encodeOutgoingResolution(w io.Writer, o *lnwallet.OutgoingHtlcResolution) error {
if err := binary.Write(w, endian, o.Expiry); err != nil {
return nil
return err
}
if o.SignedTimeoutTx == nil {
@@ -979,7 +979,7 @@ func encodeOutgoingResolution(w io.Writer, o *lnwallet.OutgoingHtlcResolution) e
}
if err := binary.Write(w, endian, o.CsvDelay); err != nil {
return nil
return err
}
if _, err := w.Write(o.ClaimOutpoint.Hash[:]); err != nil {
return err