Skip to content

Commit

Permalink
Change when-let to when-let* since it will be obsolete by emacs31 (
Browse files Browse the repository at this point in the history
  • Loading branch information
jado4810 authored Dec 12, 2024
1 parent 5e4b70f commit 3bdead1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-gutter.el
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ Argument TEST is the case before BODY execution."
(defun git-gutter:in-git-repository-p ()
(when (executable-find "git" t)
(with-temp-buffer
(when-let ((exec-result (git-gutter:execute-command
"git" t "rev-parse" "--is-inside-work-tree")))
(when-let* ((exec-result (git-gutter:execute-command
"git" t "rev-parse" "--is-inside-work-tree")))
(when (zerop exec-result)
(goto-char (point-min))
(looking-at-p "true"))))))
Expand Down

0 comments on commit 3bdead1

Please # to comment.