0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

treewide: use use lib.optionalAttrs instead of 'then {}'

This commit is contained in:
Felix Buehler 2023-06-04 14:20:51 +02:00
parent f47f0a525c
commit ed3b102d1e
5 changed files with 5 additions and 9 deletions

View file

@ -215,7 +215,7 @@ let
text = v.extraConfig;
})
(filterAttrs (n: v: v.extraConfig != "") cfg.workers))
// (if cfg.extraConfig == "" then {} else {
// (lib.optionalAttrs (cfg.extraConfig != "") {
"extra-config.inc".text = cfg.extraConfig;
});
in