Skip to content

Commit

Permalink
sightly simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
fanshi1028 committed Oct 21, 2022
1 parent 84d56cf commit 7c5e1d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -3428,13 +3428,10 @@ When DIR is specified it checks it, otherwise it acts
on the current project.
The project type is cached for improved performance."
(if (and (not dir) projectile-project-type)
projectile-project-type
(or (and (not dir) projectile-project-type)
(if-let ((project-root (projectile-project-root dir)))
(or (gethash project-root projectile-project-type-cache)
(projectile-detect-project-type dir))
;; if we're not in a project we just return nil
nil)))
(projectile-detect-project-type dir)))))

;;;###autoload
(defun projectile-project-info ()
Expand Down

0 comments on commit 7c5e1d6

Please sign in to comment.