Skip to content

Commit a3e87f4

Browse files
authored
Minor cleanup.
1 parent d53cf4f commit a3e87f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/tools/clang-format/clang-format.el

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ the function `buffer-file-name'."
232232
(defalias 'clang-format 'clang-format-region)
233233

234234
;; Format on save minor mode.
235-
;;
236-
;; Optional minor mode for formatting on save.
237235

238236
(defun clang-format--on-save-buffer-hook ()
239237
"The hook to run on buffer saving to format the buffer."
@@ -259,7 +257,7 @@ the function `buffer-file-name'."
259257
(let ((filepath buffer-file-name))
260258
(cond
261259
(filepath
262-
(null (null (locate-dominating-file (file-name-directory filepath) ".clang-format"))))
260+
(not (null (locate-dominating-file (file-name-directory filepath) ".clang-format"))))
263261
(t
264262
nil))))
265263

0 commit comments

Comments
 (0)