Skip to content

Commit cf84f85

Browse files
committed
Fix condition-case invocation
1 parent 8bd39b9 commit cf84f85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cider-common.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ Use CALLBACK as the completing read var callback."
123123
(defun cider-try-symbol-at-point (prompt callback)
124124
"Call CALLBACK with symbol at point.
125125
On failure, read a symbol name using PROMPT and call CALLBACK with that."
126-
(condition-case nil (funcall callback (cider--kw-to-symbol (cider-symbol-at-point 'look-back)))
127-
('error (funcall callback (cider-read-from-minibuffer prompt)))))
126+
(condition-case nil
127+
(funcall callback (cider--kw-to-symbol (cider-symbol-at-point 'look-back)))
128+
(error (funcall callback (cider-read-from-minibuffer prompt)))))
128129

129130
(declare-function cider-mode "cider-mode")
130131

0 commit comments

Comments
 (0)