1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 01:28:04 +00:00
This commit is contained in:
deadc0de6
2020-09-10 18:09:28 +02:00
parent 8d9521534d
commit 91b220162a
2 changed files with 12 additions and 2 deletions

View File

@@ -1258,6 +1258,9 @@ class CfgYaml:
"""recursively delete all none/empty values in a dictionary."""
new = {}
for k, v in dic.items():
if k == self.key_dotfiles and v:
new[k] = v
continue
newv = v
if isinstance(v, dict):
newv = self._clear_none(v)