emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/inf-clojure c08d8bb 165/313: Split the only when-let for b


From: ELPA Syncer
Subject: [nongnu] elpa/inf-clojure c08d8bb 165/313: Split the only when-let for backward compatibility
Date: Wed, 11 Aug 2021 10:00:08 -0400 (EDT)

branch: elpa/inf-clojure
commit c08d8bb76b213f39f3353cfa9ddaeddf08e1a908
Author: Andrea Richiardi <a.richiardi.work@gmail.com>
Commit: Bozhidar Batsov <bozhidar.batsov@gmail.com>

    Split the only when-let for backward compatibility
---
 inf-clojure.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inf-clojure.el b/inf-clojure.el
index 0b00845..e6557a6 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -1056,8 +1056,8 @@ readable sexp only."
   "Eval MATCH-P on the response of sending to PROC the input FORM.
 Note that this function will add a \n to the end of the string
 for evaluation, therefore FORM should not include it."
-  (when-let ((response (inf-clojure--process-response form proc)))
-    (funcall match-p response)))
+  (let ((response (inf-clojure--process-response form proc)))
+    (when response (funcall match-p response))))
 
 (defun inf-clojure--some-response-p (proc form)
   "Return true iff PROC's response after evaluating FORM is not nil."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]