lib/helpers: mkRaw should output null for empty strings

This commit is contained in:
Gaetan Lepage
2023-11-28 14:08:27 +01:00
committed by Gaétan Lepage
parent ad5feeba7b
commit 3ff4976eba
+3 -3
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