Skip to content

Commit 7cdfa4e

Browse files
committed
Ignore errors deleting both
1 parent 1e65249 commit 7cdfa4e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,10 +360,10 @@ file. If no ASSUME-FILE-NAME is given uses the function
360360
style
361361
assume-file-name
362362
diff-lines))))
363-
(ignore-errors
363+
(progn
364364
;; Cleanup temporary files we created.
365-
(when tmpfile-vc-head (delete-file tmpfile-vc-head))
366-
(when tmpfile-curbuf (delete-file tmpfile-curbuf))))))
365+
(when tmpfile-vc-head (ignore-errors (delete-file tmpfile-vc-head)))
366+
(when tmpfile-curbuf (ignore-errors (delete-file tmpfile-curbuf)))))))
367367

368368

369369
;;;###autoload

0 commit comments

Comments
 (0)