lntest: remove always-nil error from formatted error
This commit is contained in:
1 file changed
+2
-4
@@ -1862,13 +1862,11 @@ func (h *HarnessTest) AssertChannelInGraphDB(hn *node.HarnessNode,
|
|||||||
// Make sure the policies are populated, otherwise this edge
|
// Make sure the policies are populated, otherwise this edge
|
||||||
// cannot be used for routing.
|
// cannot be used for routing.
|
||||||
if resp.Node1Policy == nil {
|
if resp.Node1Policy == nil {
|
||||||
return fmt.Errorf("channel %s has no policy1: %w",
|
return fmt.Errorf("channel %s has no policy1", op)
|
||||||
op, err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if resp.Node2Policy == nil {
|
if resp.Node2Policy == nil {
|
||||||
return fmt.Errorf("channel %s has no policy2: %w",
|
return fmt.Errorf("channel %s has no policy2", op)
|
||||||
op, err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
edge = resp
|
edge = resp
|
||||||
|
|||||||
Reference in new issue
Block a user