Skip to content

Commit 9b2b313

Browse files
committed
Remove unused parameter from cider-test-stacktrace
1 parent 1348734 commit 9b2b313

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cider-test.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@
193193
cider-auto-select-error-buffer)
194194
(reverse causes))))))))))
195195

196-
(defun cider-test-stacktrace (&optional button)
197-
"Display stacktrace for the erring test at point, optionally from BUTTON."
196+
(defun cider-test-stacktrace ()
197+
"Display stacktrace for the erring test at point."
198198
(interactive)
199199
(let ((ns (get-text-property (point) 'ns))
200200
(var (get-text-property (point) 'var))
@@ -289,7 +289,7 @@ With the actual value, the outermost '(not ...)' s-expression is removed."
289289
(progn (insert-text-button
290290
error
291291
'follow-link t
292-
'action 'cider-test-stacktrace
292+
'action '(lambda (_button) (cider-test-stacktrace))
293293
'help-echo "View causes and stacktrace")
294294
(newline))
295295
(insert (cider-font-lock-as-clojure actual)))))

0 commit comments

Comments
 (0)