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

View File

@ -105,6 +105,7 @@ b) represent blacklisted directories that are too big, change too often or are
b) represent blacklisted directories that are too big, change too often or are 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)
projectile-enable-caching 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)