branch: elpa/helm
commit d633726827a25b912bfd04c73a25c4270613aa53
Author: Thierry Volpiatto <thie...@posteo.net>
Commit: Thierry Volpiatto <thie...@posteo.net>

    No need to use helm-aif in helm-browse-project
---
 helm-files.el | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/helm-files.el b/helm-files.el
index b2738af477..31767af44c 100644
--- a/helm-files.el
+++ b/helm-files.el
@@ -7124,19 +7124,16 @@ Needed dependencies for VCS (not mandatory, pickup what 
you need):
                          helm-type-buffer-actions)
                   helm-type-buffer-actions))
          (helm-buffers-in-project-p t)
-         (git-project (helm-aif (and (require 'helm-ls-git nil t)
-                                     (fboundp 'helm-ls-git-root-dir)
-                                     (helm-ls-git-root-dir))
-                          it))
+         (git-project (and (require 'helm-ls-git nil t)
+                           (fboundp 'helm-ls-git-root-dir)
+                           (helm-ls-git-root-dir)))
+         (hg-project (and (require 'helm-ls-hg nil t)
+                          (fboundp 'helm-hg-root)
+                          (helm-hg-root)))
+         (svn-project (and (require 'helm-ls-svn nil t)
+                           (fboundp 'helm-ls-svn-root-dir)
+                           (helm-ls-svn-root-dir)))
          ;; handle nested projects (Hg inside Git or vice versa) issue#2723.
-         (hg-project (helm-aif (and (require 'helm-ls-hg nil t)
-                                    (fboundp 'helm-hg-root)
-                                    (helm-hg-root))
-                         it))
-         (svn-project (helm-aif (and (require 'helm-ls-svn nil t)
-                                     (fboundp 'helm-ls-svn-root-dir)
-                                     (helm-ls-svn-root-dir))
-                          it))
          (project-type (vc-deduce-backend)))
     (cl-flet ((push-to-hist (root)
                 (setq helm-browse-project-history

Reply via email to