Skip to content

Commit

Permalink
Remove unecessary function call file-name-directory
Browse files Browse the repository at this point in the history
Why:
It is called inside of the `idris-ipkg-buffer-src-dir` function.
  • Loading branch information
keram committed Jul 13, 2024
1 parent f5c649a commit 1767b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion idris-ipkg-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"Make all modules with existing files clickable, where clicking opens them."
(interactive)
(idris-clear-file-link-overlays 'idris-ipkg-mode)
(let ((src-dir (idris-ipkg-buffer-src-dir (file-name-directory (buffer-file-name)))))
(let ((src-dir (idris-ipkg-buffer-src-dir (buffer-file-name))))
;; Make the sourcedir clickable
(when (and (file-exists-p src-dir)
(file-directory-p src-dir)
Expand Down

0 comments on commit 1767b84

Please sign in to comment.