lint: fix error reported by the linter

This commit is contained in:
Andras Banki-Horvath 2020-11-18 15:26:27 +01:00
parent efedb5547c
commit 5f3b800630
No known key found for this signature in database
GPG Key ID: 80E5375C094198D8

@ -11604,10 +11604,7 @@ func testSwitchOfflineDelivery(net *lntest.NetworkHarness, t *harnessTest) {
var predErr error
err = wait.Predicate(func() bool {
predErr = assertNumActiveHtlcs(nodes, numPayments)
if predErr != nil {
return false
}
return true
return predErr == nil
}, time.Second*15)
if err != nil {
t.Fatalf("htlc mismatch: %v", predErr)