lntest: remove always-nil error from formatted error

This commit is contained in:
Elle Mouton committed 2025-01-24 12:49:41 +02:00
1 parent 6cabc74c20
commit af8c8b4bb3
1 file changed
+2 -4
+2 -4
View File
@@ -1862,13 +1862,11 @@ func (h *HarnessTest) AssertChannelInGraphDB(hn *node.HarnessNode,
// Make sure the policies are populated, otherwise this edge
// cannot be used for routing.
if resp.Node1Policy == nil {
return fmt.Errorf("channel %s has no policy1: %w",
op, err)
return fmt.Errorf("channel %s has no policy1", op)
}
if resp.Node2Policy == nil {
return fmt.Errorf("channel %s has no policy2: %w",
op, err)
return fmt.Errorf("channel %s has no policy2", op)
}
edge = resp