Commit e9907b3
committed
fix(cli): guard non-interactive prompter against empty options
Add the same empty-options check to createNonInteractivePrompter's
selectOne that the TTY prompter already has, preventing an
out-of-bounds access if called with an empty array.1 parent 693a6f9 commit e9907b3
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments