refactor: use a more straightforward return value
Signed-off-by: fuyangpengqi <995764973@qq.com>
This commit is contained in:
1 parent
8532955b35
commit
150f72414a
6 files changed
+7
-7
No files matched your search
@@ -487,7 +487,7 @@ func (h *htlcTimeoutResolver) sweepTimeoutTx() error {
|
||||
return err
|
||||
}
|
||||
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
|
||||
// resolveSecondLevelTxLegacy sends a second level timeout transaction to the
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user