Skip to content

Commit

Permalink
magit-module-worktree-p: Remove redundant expand-file-name call
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Apr 26, 2024
1 parent 9ec92f1 commit dbacaa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/magit-git.el
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ are considered."

(defun magit-module-worktree-p (module)
(magit-with-toplevel
(file-exists-p (expand-file-name (expand-file-name ".git" module)))))
(file-exists-p (expand-file-name ".git" module))))

(defun magit-module-no-worktree-p (module)
(not (magit-module-worktree-p module)))
Expand Down

0 comments on commit dbacaa3

Please sign in to comment.