3
0
Fork 0
forked from mirrors/nixpkgs

lib/types: remove unnecessary coerceFunc assertion

This commit is contained in:
Silvan Mosberger 2018-04-04 17:40:47 +02:00 committed by Profpatsch
parent cd5736116c
commit facd51575e

View file

@ -425,10 +425,7 @@ rec {
let
coerceVal = val:
if finalType.check val then val
else let
coerced = coerceFunc val;
in assert finalType.check coerced; coerced;
else coerceFunc val;
in finalType.merge loc (map (def: def // { value = coerceVal def.value; }) defs);
getSubOptions = finalType.getSubOptions;
getSubModules = finalType.getSubModules;