Skip to content

Commit 15d15c7

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 b9442ea commit 15d15c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

idris-ipkg-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
"Make all modules with existing files clickable, where clicking opens them."
137137
(interactive)
138138
(idris-clear-file-link-overlays 'idris-ipkg-mode)
139-
(let ((src-dir (idris-ipkg-buffer-src-dir (file-name-directory (buffer-file-name)))))
139+
(let ((src-dir (idris-ipkg-buffer-src-dir (buffer-file-name))))
140140
;; Make the sourcedir clickable
141141
(when (and (file-exists-p src-dir)
142142
(file-directory-p src-dir)

0 commit comments

Comments
 (0)