Skip to content

Commit b543552

Browse files
fixup! FIX louietan#76: handle both old and new function signatures of `request--curl-callback'
1 parent a6965c8 commit b543552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anki-editor.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ See https://apps.ankiweb.net/docs/manual.html#latex-conflicts.")
166166
;; why here we manually invoke callbacks to receive the result.
167167
(unless (request-response-done-p response)
168168
;; (request--curl-callback "localhost" (get-buffer-process (request-response--buffer response)) "finished\n")))
169-
(if (= 2 (func-arity (function 'request--curl-callback)))
169+
(if (equalp '(2 . 2) (func-arity 'request--curl-callback))
170170
;; Handle the older, stable version of 'request.el' in which
171171
;; `request--curl-callback' has two args.
172172
(request--curl-callback (get-buffer-process (request-response--buffer response)) "finished\n")

0 commit comments

Comments
 (0)