lib/helpers: remove useless ifNonNull

This commit is contained in:
Gaetan Lepage 2023-08-17 16:07:15 +02:00 committed by Gaétan Lepage
parent 00016841c9
commit 24350879b1
2 changed files with 1 additions and 3 deletions

View file

@ -145,8 +145,6 @@ with lib; rec {
then null then null
else y; else y;
ifNonNull = x: ifNonNull' x x;
mkCompositeOption = desc: options: mkCompositeOption = desc: options:
mkNullOrOption (types.submodule {inherit options;}) desc; mkNullOrOption (types.submodule {inherit options;}) desc;

View file

@ -906,7 +906,7 @@ in {
update_root = updateRoot; update_root = updateRoot;
ignore_list = ignoreList; ignore_list = ignoreList;
}; };
system_open = helpers.ifNonNull systemOpen; system_open = systemOpen;
diagnostics = with diagnostics; diagnostics = with diagnostics;
ifNonNull' cfg.diagnostics { ifNonNull' cfg.diagnostics {
inherit enable; inherit enable;