Skip to content

Commit a02ed8f

Browse files
committed
simplify condition
1 parent 9d52196 commit a02ed8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/records.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ lib.mapAttrs
265265
${spfText}
266266
'';
267267
type = lib.types.unspecified;
268-
apply = x: if x != null then lib.throwIfNot (x == null) spfText else x;
268+
apply = x: lib.throwIfNot (x == null) spfText x;
269269
};
270270
srv.common = {
271271
description = lib.mdDoc ''

0 commit comments

Comments
 (0)