multi: formatting and comment fixes

This commit is contained in:
Oliver Gugger committed 2022-02-10 11:02:02 +01:00
1 parent ffee7d1bcf
commit 895a2e497b
160 files changed
+159 -260

No files matched your search

-5
View File
@@ -570,7 +570,6 @@ func testPaymentLifecycle(t *testing.T, test paymentLifecycleTestCase,
}
switch step {
case routerInitPayment:
var args initArgs
select {
@@ -934,7 +933,6 @@ func TestPaymentState(t *testing.T) {
)
})
}
}
// TestUpdatePaymentState checks that the method updatePaymentState updates the
@@ -1071,7 +1069,6 @@ func TestUpdatePaymentState(t *testing.T) {
ct.On("FetchPayment", paymentHash).Return(
nil, dummyErr,
)
} else {
// Otherwise we will return the payment.
ct.On("FetchPayment", paymentHash).Return(
@@ -1096,10 +1093,8 @@ func TestUpdatePaymentState(t *testing.T) {
t, tc.expectedState, state,
"state not updated as expected",
)
})
}
}
func makeActiveAttempt(total, fee int) channeldb.HTLCAttempt {