mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
lib.types: inline tail binding
This commit is contained in:
parent
51a39dc768
commit
9b693534b4
1 changed files with 1 additions and 2 deletions
|
|
@ -1585,9 +1585,8 @@ rec {
|
|||
let
|
||||
head' =
|
||||
if ts == [ ] then throw "types.oneOf needs to get at least one type in its argument" else head ts;
|
||||
tail' = tail ts;
|
||||
in
|
||||
foldl' either head' tail';
|
||||
foldl' either head' (tail ts);
|
||||
|
||||
# Either value of type `coercedType` or `finalType`, the former is
|
||||
# converted to `finalType` using `coerceFunc`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue