lib.types: inline tail binding
This commit is contained in:
+1
-2
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user