From a02ed8f31a176f4fdc43b18849cbee058141b8fd Mon Sep 17 00:00:00 2001 From: "Janik H." Date: Thu, 15 Feb 2024 19:39:38 +0100 Subject: [PATCH] simplify condition --- modules/records.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/records.nix b/modules/records.nix index fd258f0..088a07e 100644 --- a/modules/records.nix +++ b/modules/records.nix @@ -265,7 +265,7 @@ lib.mapAttrs ${spfText} ''; type = lib.types.unspecified; - apply = x: if x != null then lib.throwIfNot (x == null) spfText else x; + apply = x: lib.throwIfNot (x == null) spfText x; }; srv.common = { description = lib.mdDoc ''