Skip to content

Commit 461f0b0

Browse files
committed
Fix error return order in loopin_test.go
- Change return signature of startNewLoopIn from (*swapConfig, error, *loopInSwap) to (*swapConfig, *loopInSwap, error) - Fixes ST1008: error should be returned as the last argument
1 parent e6ac2a0 commit 461f0b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loopin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ func advanceToPublishedHtlc(t *testing.T, ctx *loopInTestContext) SwapInfo {
760760
}
761761

762762
func startNewLoopIn(t *testing.T, ctx *loopInTestContext, height int32) (
763-
*swapConfig, error, *loopInSwap) {
763+
*swapConfig, *loopInSwap, error) {
764764

765765
cfg := newSwapConfig(&ctx.lnd.LndServices, ctx.store, ctx.server, nil)
766766

@@ -783,5 +783,5 @@ func startNewLoopIn(t *testing.T, ctx *loopInTestContext, height int32) (
783783
}
784784
ctx.errChan <- err
785785
}()
786-
return cfg, err, inSwap
786+
return cfg, inSwap, err
787787
}

0 commit comments

Comments
 (0)