Skip to content

Commit 30333a6

Browse files
committed
Remove unecessary function call file-name-directory
Why: It is called inside of the `idris-ipkg-buffer-src-dir` function.
1 parent 8392dda commit 30333a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idris-ipkg-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"Make all modules with existing files clickable, where clicking opens them."
136136
(interactive)
137137
(idris-clear-file-link-overlays 'idris-ipkg-mode)
138-
(let ((src-dir (idris-ipkg-buffer-src-dir (file-name-directory (buffer-file-name)))))
138+
(let ((src-dir (idris-ipkg-buffer-src-dir (buffer-file-name))))
139139
;; Make the sourcedir clickable
140140
(when (and (file-exists-p src-dir)
141141
(file-directory-p src-dir)

0 commit comments

Comments
 (0)