mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-09 12:25:03 +02:00
lib/helpers: mkRaw should output null for empty strings
This commit is contained in:
parent
ad5feeba7b
commit
3ff4976eba
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue