branch: elpa/projectile
commit a74438e409b2112fdae04e07bc0ac9d2151d2efa
Author: Bozhidar Batsov <bozhi...@batsov.dev>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    Optimize a bit the check controlling auto project discovery
---
 projectile.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projectile.el b/projectile.el
index 6e09c0ea7c..b6f0c7315c 100644
--- a/projectile.el
+++ b/projectile.el
@@ -5536,7 +5536,7 @@ and discover new ones if `projectile-auto-discover' is 
enabled."
   ;; load the known projects
   (unless projectile-known-projects
     (projectile-load-known-projects))
-  (when projectile-auto-discover
+  (when (and projectile-auto-discover projectile-project-search-path)
     (projectile-discover-projects-in-search-path)))
 
 (defun projectile-relevant-known-projects ()

Reply via email to