Skip to content

Commit 9d589b4

Browse files
committed
tools: regenerate llformat baseline
1 parent 2123cac commit 9d589b4

47 files changed

Lines changed: 102 additions & 112 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/client_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ func TestGetPaymentMaxAmount(t *testing.T) {
6161
t.Fatalf("unexpected error: %v", err)
6262
}
6363
if result != test.expectedAmount {
64-
t.Fatalf(
65-
"expected %v, got %v",
66-
test.expectedAmount, result,
67-
)
64+
t.Fatalf("expected %v, got %v",
65+
test.expectedAmount, result)
6866
}
6967
}
7068
}

client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ func (s *Client) AbandonSwap(ctx context.Context,
976976
case s.abandonChans[req.SwapHash] <- struct{}{}:
977977
case <-ctx.Done():
978978
return ctx.Err()
979+
979980
default:
980981
// This is to avoid writing to a full channel.
981982
}

cmd/loop/instantout.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ func instantOut(ctx context.Context, cmd *cli.Command) error {
9999
}
100100

101101
fmt.Printf("Reservation %v: shortid %x, amt %v, expiry "+
102-
"height %v \n", idx, res.ReservationId[:3], res.Amount,
103-
res.Expiry)
102+
"height %v \n",
103+
idx, res.ReservationId[:3], res.Amount, res.Expiry)
104104

105105
totalAmt += int64(res.Amount)
106106
}

cmd/loop/loopin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ func loopIn(ctx context.Context, cmd *cli.Command) error {
101101
amtStr = args.First()
102102

103103
default:
104-
105104
// Show command help if no arguments and flags were provided.
106105
return showCommandHelp(ctx, cmd)
107106
}

cmd/loop/loopout.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ func loopOut(ctx context.Context, cmd *cli.Command) error {
143143
remaining = args.Tail()
144144

145145
default:
146-
147146
// Show command help if no arguments and flags were provided.
148147
return showCommandHelp(ctx, cmd)
149148
}

cmd/loop/staticaddr.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ func withdraw(ctx context.Context, cmd *cli.Command) error {
190190
return errors.New("must select either all or some utxos")
191191

192192
case isAllSelected:
193-
194193
case isUtxoSelected:
195194
utxos := cmd.StringSlice("utxo")
196195
outpoints, err = lndcommands.UtxosToOutpoints(utxos)

cmd/loop/swaps.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ func swapInfo(ctx context.Context, cmd *cli.Command) error {
158158
id = args.First()
159159

160160
default:
161-
162161
// Show command help if no arguments and flags were provided.
163162
return showCommandHelp(ctx, cmd)
164163
}
@@ -224,7 +223,6 @@ func abandonSwap(ctx context.Context, cmd *cli.Command) error {
224223
id = args.First()
225224

226225
default:
227-
228226
// Show command help if no arguments and flags were provided.
229227
return showCommandHelp(ctx, cmd)
230228
}

executor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ func (s *executor) run(mainCtx context.Context,
115115
select {
116116
case h := <-blockEpochChan:
117117
setHeight(h)
118+
118119
case err := <-blockErrorChan:
119120
return err
121+
120122
case <-mainCtx.Done():
121123
return mainCtx.Err()
122124
}

fsm/observer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ func (c *CachedObserver) WaitForState(ctx context.Context,
113113
if options.initialWait > 0 {
114114
select {
115115
case <-time.After(options.initialWait):
116-
117116
case <-ctx.Done():
118117
return ctx.Err()
119118
}

instantout/actions.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ func (f *FSM) InitInstantOutAction(ctx context.Context,
113113
if int32(res.Expiry) < initCtx.cltvExpiry+htlcExpiryDelta {
114114
return f.HandleError(
115115
fmt.Errorf("reservation %x has expiry %v "+
116-
"which is less than the swap expiry %v",
117-
resId, res.Expiry,
116+
"which is less than the swap "+
117+
"expiry %v", resId, res.Expiry,
118118
initCtx.cltvExpiry+htlcExpiryDelta),
119119
)
120120
}
@@ -265,6 +265,7 @@ func (f *FSM) PollPaymentAcceptedAction(ctx context.Context,
265265
payRes.FailureReason),
266266
)
267267
}
268+
268269
case err := <-paymentErrChan:
269270
f.Errorf("error sending payment: %v", err)
270271

0 commit comments

Comments
 (0)