From 273d9ffd6a6a6f64255eadafef8e91216c1193b8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 28 Jul 2015 15:35:45 +0200 Subject: [PATCH] Remove superfluous copy of "min" --- lib/modules.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/modules.nix b/lib/modules.nix index f64adaf1b193..d7037abfbef0 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -387,7 +387,6 @@ rec { let defaultPrio = 100; getPrio = def: if def.value._type or "" == "override" then def.value.priority else defaultPrio; - min = x: y: if x < y then x else y; highestPrio = foldl' (prio: def: min (getPrio def) prio) 9999 defs; strip = def: if def.value._type or "" == "override" then def // { value = def.value.content; } else def; in concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;