3
0
Fork 0
forked from mirrors/nixpkgs

Remove superfluous copy of "min"

This commit is contained in:
Eelco Dolstra 2015-07-28 15:35:45 +02:00
parent 5bae65da23
commit 273d9ffd6a

View file

@ -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;