Skip to content

Commit

Permalink
refactor: use a more straightforward return value
Browse files Browse the repository at this point in the history
Signed-off-by: fuyangpengqi <[email protected]>
  • Loading branch information
fuyangpengqi committed Feb 17, 2025
1 parent 01819f0 commit f181a65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion channeldb/migration32/mission_control_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ func serializeNewResult(rp *paymentResultNew) ([]byte, []byte, error) {
return nil, nil, err
}

return key, buff.Bytes(), err
return key, buff.Bytes(), nil
}

// getResultKeyNew returns a byte slice representing a unique key for this
Expand Down
4 changes: 2 additions & 2 deletions contractcourt/htlc_timeout_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func (h *htlcTimeoutResolver) sweepTimeoutTx() error {
return err
}

return err
return nil
}

// resolveSecondLevelTxLegacy sends a second level timeout transaction to the
Expand Down Expand Up @@ -593,7 +593,7 @@ func (h *htlcTimeoutResolver) waitForConfirmedSpend(op *wire.OutPoint,
return nil, err
}

return spend, err
return spend, nil
}

// Stop signals the resolver to cancel any current resolution processes, and
Expand Down

0 comments on commit f181a65

Please sign in to comment.