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:
ifNonNull'
r
{__raw = r;};
if (isString r && (r != ""))
then {__raw = r;}
else null;
wrapDo = string: ''
do