Skip to content

Commit 1e80b97

Browse files
committed
Don't quote cl-case form clause
Quoting the `fill` clause in the `cl-case` form on line 118 was probably not intended, as shown by the following compilation warning: Case 'fill will match ‘quote’. If that’s intended, write (fill quote) instead. Otherwise, don’t quote ‘fill’.
1 parent 456596e commit 1e80b97

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

blacken.el

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
;;
4040
;;; Code:
4141

42-
(require 'cl-lib)
43-
4442
(defgroup blacken nil
4543
"Reformat Python code with \"black\"."
4644
:group 'python)
@@ -114,9 +112,9 @@ Return black process the exit code."
114112
(append
115113
(when blacken-line-length
116114
(list "--line-length"
117-
(number-to-string (cl-case blacken-line-length
118-
('fill fill-column)
119-
(t blacken-line-length)))))
115+
(number-to-string (if (eq blacken-line-length 'fill)
116+
fill-column
117+
blacken-line-length))))
120118
(if blacken-allow-py36
121119
(list "--target-version" "py36")
122120
(when blacken-target-version

0 commit comments

Comments
 (0)