Skip to content

Commit

Permalink
Remove unnecessary function call, per #957
Browse files Browse the repository at this point in the history
* buffer-file-name returns the current buffer when no
  argument is specified.
  • Loading branch information
jbenden committed Mar 11, 2016
1 parent 1cc6183 commit 8b66289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ The cache is created both in memory and on the hard drive."
(interactive)
(let ((current-project (projectile-project-root)))
(when (and (buffer-file-name) (gethash (projectile-project-root) projectile-projects-cache))
(let* ((abs-current-file (file-truename (buffer-file-name (current-buffer))))
(let* ((abs-current-file (file-truename (buffer-file-name)))
(current-file (file-relative-name abs-current-file current-project)))
(unless (or (projectile-file-cached-p current-file current-project)
(projectile-ignored-directory-p (file-name-directory abs-current-file))
Expand Down

0 comments on commit 8b66289

Please sign in to comment.