cmd/loop: fix panic on zero index in instantout reservation selection

This commit is contained in:
Olexandr88 2026-04-20 08:07:25 +03:00 committed by Slyghtning
parent 7b1c60dba2
commit 6fd752f7e7
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF

View file

@ -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)
}