mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
lib/helpers: mkRaw should output null for empty strings
This commit is contained in:
committed by
Gaétan Lepage
parent
ad5feeba7b
commit
3ff4976eba
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user