Skip to content

Commit

Permalink
magit-list-worktree: Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Apr 16, 2023
1 parent 03df2ef commit 23904be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lisp/magit-git.el
Original file line number Diff line number Diff line change
Expand Up @@ -2146,8 +2146,7 @@ PATH has to be relative to the super-repository."
((string-prefix-p "HEAD" line)
(setf (nth 2 worktree) (substring line 5)))
((string-prefix-p "branch" line)
(setf (nth 3 worktree) (substring line 18)))
((string-equal line "detached"))))
(setf (nth 3 worktree) (substring line 18)))))
(nreverse worktrees)))

(defun magit-symbolic-ref-p (name)
Expand Down

0 comments on commit 23904be

Please sign in to comment.