mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
lib/types: remove unnecessary coerceFunc assertion
This commit is contained in:
parent
cd5736116c
commit
facd51575e
1 changed files with 1 additions and 4 deletions
|
@ -425,10 +425,7 @@ rec {
|
||||||
let
|
let
|
||||||
coerceVal = val:
|
coerceVal = val:
|
||||||
if finalType.check val then val
|
if finalType.check val then val
|
||||||
else let
|
else coerceFunc val;
|
||||||
coerced = coerceFunc val;
|
|
||||||
in assert finalType.check coerced; coerced;
|
|
||||||
|
|
||||||
in finalType.merge loc (map (def: def // { value = coerceVal def.value; }) defs);
|
in finalType.merge loc (map (def: def // { value = coerceVal def.value; }) defs);
|
||||||
getSubOptions = finalType.getSubOptions;
|
getSubOptions = finalType.getSubOptions;
|
||||||
getSubModules = finalType.getSubModules;
|
getSubModules = finalType.getSubModules;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue