mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
lib/helpers: remove useless ifNonNull
This commit is contained in:
parent
00016841c9
commit
24350879b1
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue