Skip to content

Commit c08d8bb

Browse files
arichiardibbatsov
authored andcommitted
Split the only when-let for backward compatibility
1 parent ee38fc3 commit c08d8bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inf-clojure.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,8 +1056,8 @@ readable sexp only."
10561056
"Eval MATCH-P on the response of sending to PROC the input FORM.
10571057
Note that this function will add a \n to the end of the string
10581058
for evaluation, therefore FORM should not include it."
1059-
(when-let ((response (inf-clojure--process-response form proc)))
1060-
(funcall match-p response)))
1059+
(let ((response (inf-clojure--process-response form proc)))
1060+
(when response (funcall match-p response))))
10611061

10621062
(defun inf-clojure--some-response-p (proc form)
10631063
"Return true iff PROC's response after evaluating FORM is not nil."

0 commit comments

Comments
 (0)