From 9b693534b489f629345c59effd8eb0ac19c35af8 Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Thu, 7 May 2026 18:47:19 -0400 Subject: [PATCH] lib.types: inline `tail` binding --- lib/types.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/types.nix b/lib/types.nix index 809b11c247c5..d40b044792ff 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -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`.