doom-cleanup-project-cache-h: do nothing if caching is disabled

This commit is contained in:
Henrik Lissner 2020-07-31 16:00:52 -04:00
parent 434f107099
commit 351e7036d9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -105,6 +105,7 @@ b) represent blacklisted directories that are too big, change too often or are
private. (see `doom-projectile-cache-blacklist'), private. (see `doom-projectile-cache-blacklist'),
c) are not valid projectile projects." c) are not valid projectile projects."
(when (and (bound-and-true-p projectile-projects-cache) (when (and (bound-and-true-p projectile-projects-cache)
projectile-enable-caching
doom-interactive-p) doom-interactive-p)
(cl-loop with blacklist = (mapcar #'file-truename doom-projectile-cache-blacklist) (cl-loop with blacklist = (mapcar #'file-truename doom-projectile-cache-blacklist)
for proot in (hash-table-keys projectile-projects-cache) for proot in (hash-table-keys projectile-projects-cache)