Skip to content

Commit af8c8b4

Browse files
committed
lntest: remove always-nil error from formatted error
1 parent 6cabc74 commit af8c8b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lntest/harness_assertion.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1862,13 +1862,11 @@ func (h *HarnessTest) AssertChannelInGraphDB(hn *node.HarnessNode,
18621862
// Make sure the policies are populated, otherwise this edge
18631863
// cannot be used for routing.
18641864
if resp.Node1Policy == nil {
1865-
return fmt.Errorf("channel %s has no policy1: %w",
1866-
op, err)
1865+
return fmt.Errorf("channel %s has no policy1", op)
18671866
}
18681867

18691868
if resp.Node2Policy == nil {
1870-
return fmt.Errorf("channel %s has no policy2: %w",
1871-
op, err)
1869+
return fmt.Errorf("channel %s has no policy2", op)
18721870
}
18731871

18741872
edge = resp

0 commit comments

Comments
 (0)