We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 764912a commit 456596eCopy full SHA for 456596e
blacken.el
@@ -132,7 +132,7 @@ Return black process the exit code."
132
133
(defun blacken-project-is-blackened (&optional display)
134
"Whether the project has a pyproject.toml with [tool.black] in it."
135
- (when-let ((parent (locate-dominating-file default-directory "pyproject.toml")))
+ (when-let (parent (locate-dominating-file default-directory "pyproject.toml"))
136
(with-temp-buffer
137
(insert-file-contents (concat parent "pyproject.toml"))
138
(re-search-forward "^\\[tool.black\\]$" nil t 1))))
0 commit comments