Skip to content

Commit af3887a

Browse files
committed
multi: fix linter issues after version update
1 parent 86aa2e2 commit af3887a

File tree

5 files changed

+0
-8
lines changed

5 files changed

+0
-8
lines changed

lightning_client_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ func TestLightningClientAddInvoice(t *testing.T) {
161161
}
162162

163163
for _, test := range tests {
164-
test := test
165164
t.Run(test.name, func(t *testing.T) {
166165
ln := lightningClient{
167166
client: &test.client,

lnd_services_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ func TestLndVersionCheckComparison(t *testing.T) {
154154
}
155155

156156
for _, tc := range testCases {
157-
tc := tc
158157
t.Run(tc.name, func(t *testing.T) {
159158
err := AssertVersionCompatible(
160159
tc.actual, &verrpc.Version{
@@ -311,8 +310,6 @@ func TestGetLndInfo(t *testing.T) {
311310
}
312311

313312
for _, test := range tests {
314-
test := test
315-
316313
t.Run(test.name, func(t *testing.T) {
317314
mock := newLockLndMock(
318315
test.errors, test.stateErr, test.states,

macaroon_recipes_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ func TestMacaroonRecipe(t *testing.T) {
7373

7474
// Run the test for all supported RPC packages.
7575
for pkg, numPermissions := range expectedPermissions {
76-
pkg, numPermissions := pkg, numPermissions
7776
t.Run(pkg, func(t *testing.T) {
7877
t.Parallel()
7978

router_client.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,6 @@ func (r *routerClient) ImportMissionControl(ctx context.Context,
10611061
}
10621062

10631063
for i, entry := range entries {
1064-
entry := entry
10651064
rpcEntry := &routerrpc.PairHistory{
10661065
NodeFrom: entry.NodeFrom[:],
10671066
NodeTo: entry.NodeTo[:],

walletkit_client.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,6 @@ func (m *walletKitClient) ListLeases(ctx context.Context) ([]LeaseDescriptor,
357357

358358
leases := make([]LeaseDescriptor, 0, len(resp.LockedUtxos))
359359
for _, leasedUtxo := range resp.LockedUtxos {
360-
leasedUtxo := leasedUtxo
361-
362360
txHash, err := chainhash.NewHash(
363361
leasedUtxo.Outpoint.TxidBytes,
364362
)

0 commit comments

Comments
 (0)