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
@@ -3146,7 +3146,7 @@ func (c *OpenChannel) RemoteCommitChainTip() (*CommitDiff, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return cd, err
|
||||
return cd, nil
|
||||
}
|
||||
|
||||
// UnsignedAckedUpdates retrieves the persisted unsigned acked remote log
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user