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:
parent
f47f0a525c
commit
ed3b102d1e
5 changed files with 5 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue