lib.types: inline tail binding

This commit is contained in:
Eman Resu
2026-05-12 11:23:16 -04:00
parent 51a39dc768
commit 9b693534b4
+1 -2
View File
@@ -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`.