From facd51575e23ef485ef233d76327a0a82b230aa0 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Wed, 4 Apr 2018 17:40:47 +0200 Subject: [PATCH] lib/types: remove unnecessary coerceFunc assertion --- lib/types.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/types.nix b/lib/types.nix index 4ee9affcb297..17acb92a9441 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;