Skip to content

Commit

Permalink
use when-let* instead
Browse files Browse the repository at this point in the history
  • Loading branch information
eki3z committed Oct 29, 2024
1 parent 84f3c98 commit 8e0955c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consult-todo.el
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ If optional arg DIRECTORY is nil, rgrep in default directory."
"Jump to hl-todo keywords in current project."
(interactive)
(consult-todo-dir
(when-let ((project (project-current)))
(when-let* ((project (project-current)))
(expand-file-name
(if (fboundp 'project-root)
(project-root project)
Expand Down

0 comments on commit 8e0955c

Please sign in to comment.