1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-09 03:56:05 +01:00

lib/helpers: mkRaw should output null for empty strings

This commit is contained in:
Gaetan Lepage 2023-11-28 09:47:14 +01:00 committed by Gaétan Lepage
parent ad5feeba7b
commit 3ff4976eba

View file

@ -272,9 +272,9 @@ with lib; rec {
}; };
mkRaw = r: mkRaw = r:
ifNonNull' if (isString r && (r != ""))
r then {__raw = r;}
{__raw = r;}; else null;
wrapDo = string: '' wrapDo = string: ''
do do