Skip to content

Commit

Permalink
lib/types: remove unnecessary coerceFunc assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil authored and Profpatsch committed May 6, 2018
1 parent cd57361 commit facd515
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit facd515

Please sign in to comment.