Commit c377cb7
committed
Resolve install() with false for an empty langs sequence.
The prose already states the promise resolves to false if options.langs is
empty, but no step implemented it: an empty sequence vacuously passes the
unsupported-language check and then trivially succeeds with no downloads,
resolving to true. Add an explicit step, matching how the availability
algorithm treats an empty sequence as unavailable.1 parent 1274d1a commit c377cb7
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
| 425 | + | |
| 426 | + | |
426 | 427 | | |
427 | 428 | | |
428 | 429 | | |
| |||
0 commit comments