From af8c8b4bb3e41b3d77236600ae420de76908f076 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Fri, 24 Jan 2025 12:44:16 +0200 Subject: [PATCH] lntest: remove always-nil error from formatted error --- lntest/harness_assertion.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lntest/harness_assertion.go b/lntest/harness_assertion.go index 98d2ac501..8130ac167 100644 --- a/lntest/harness_assertion.go +++ b/lntest/harness_assertion.go @@ -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