Skip to content

Commit

Permalink
simplify condition (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik-Haag authored Feb 15, 2024
1 parent 9d52196 commit 0205c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/records.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
Expand Down

0 comments on commit 0205c8c

Please sign in to comment.