diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2018-04-04 17:40:47 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2018-05-06 23:58:36 +0200 |
commit | facd51575e23ef485ef233d76327a0a82b230aa0 (patch) | |
tree | de9510f6747aca84acc858b6816f2bac85b30bb6 | |
parent | cd5736116c971ed08826b71a15a2221233b3d44f (diff) |
lib/types: remove unnecessary coerceFunc assertion
-rw-r--r-- | lib/types.nix | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/types.nix b/lib/types.nix index 4ee9affcb297a..17acb92a9441e 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -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; |