Skip to content

Commit 9d3cfaf

Browse files
committed
Move an op-supported check where it belongs
1 parent 7d38107 commit 9d3cfaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cider-doc.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@
181181
(defun cider-javadoc-handler (symbol-name)
182182
"Invoke the nREPL \"info\" op on SYMBOL-NAME if available."
183183
(when symbol-name
184-
(cider-ensure-op-supported "info")
185184
(let* ((info (cider-var-info symbol-name))
186185
(url (nrepl-dict-get info "javadoc")))
187186
(if url
@@ -196,6 +195,7 @@ the value of `cider-prompt-for-symbol'. With prefix arg ARG, does the
196195
opposite of what that option dictates."
197196
(interactive "P")
198197
(cider-ensure-connected)
198+
(cider-ensure-op-supported "info")
199199
(funcall (cider-prompt-for-symbol-function arg)
200200
"Javadoc for"
201201
#'cider-javadoc-handler))

0 commit comments

Comments
 (0)