Skip to content

Commit 6fd752f

Browse files
Olexandr88hieblmi
authored andcommitted
cmd/loop: fix panic on zero index in instantout reservation selection
1 parent 7b1c60d commit 6fd752f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/loop/instantout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func instantOut(ctx context.Context, cmd *cli.Command) error {
137137
if err != nil {
138138
return err
139139
}
140-
if idx < 0 {
140+
if idx <= 0 {
141141
return fmt.Errorf("invalid index %v", idx)
142142
}
143143

0 commit comments

Comments
 (0)