mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
cmd/loop: fix panic on zero index in instantout reservation selection
This commit is contained in:
parent
7b1c60dba2
commit
6fd752f7e7
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ func instantOut(ctx context.Context, cmd *cli.Command) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if idx < 0 {
|
||||
if idx <= 0 {
|
||||
return fmt.Errorf("invalid index %v", idx)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue