Skip to content

Commit 456596e

Browse files
author
Jonathan Tsai
committed
Remove extra layer of parens in when-let call
- Fixes issue #52 that occurs in Emacs v26 - Also tested in Emacs v27, 28, and still works
1 parent 764912a commit 456596e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blacken.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Return black process the exit code."
132132

133133
(defun blacken-project-is-blackened (&optional display)
134134
"Whether the project has a pyproject.toml with [tool.black] in it."
135-
(when-let ((parent (locate-dominating-file default-directory "pyproject.toml")))
135+
(when-let (parent (locate-dominating-file default-directory "pyproject.toml"))
136136
(with-temp-buffer
137137
(insert-file-contents (concat parent "pyproject.toml"))
138138
(re-search-forward "^\\[tool.black\\]$" nil t 1))))

0 commit comments

Comments
 (0)