lnd: fix go fmt
This commit is contained in:
parent
60446494e9
commit
b01947b7dc
@ -307,7 +307,7 @@ func (rs readSet) gets() []v3.Op {
|
||||
func (rs readSet) cmps(lset map[string]interface{}) []v3.Cmp {
|
||||
if len(lset) > 0 {
|
||||
cmps := make([]v3.Cmp, 0, len(lset))
|
||||
for key, _ := range lset {
|
||||
for key := range lset {
|
||||
if getValue, ok := rs[key]; ok {
|
||||
cmps = append(
|
||||
cmps,
|
||||
|
@ -272,13 +272,13 @@ func (c *interceptorTestContext) prepareTestCases() (
|
||||
[]*interceptorTestCase, error) {
|
||||
|
||||
cases := []*interceptorTestCase{
|
||||
&interceptorTestCase{amountMsat: 1000, shouldHold: false,
|
||||
{amountMsat: 1000, shouldHold: false,
|
||||
interceptorAction: routerrpc.ResolveHoldForwardAction_FAIL},
|
||||
&interceptorTestCase{amountMsat: 1000, shouldHold: false,
|
||||
{amountMsat: 1000, shouldHold: false,
|
||||
interceptorAction: routerrpc.ResolveHoldForwardAction_RESUME},
|
||||
&interceptorTestCase{amountMsat: 1000, shouldHold: false,
|
||||
{amountMsat: 1000, shouldHold: false,
|
||||
interceptorAction: routerrpc.ResolveHoldForwardAction_SETTLE},
|
||||
&interceptorTestCase{amountMsat: 1000, shouldHold: true,
|
||||
{amountMsat: 1000, shouldHold: true,
|
||||
interceptorAction: routerrpc.ResolveHoldForwardAction_RESUME},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user