]> git.eshelyaron.com Git - emacs.git/commitdiff
; Jsonrpc: fix spurious unintended change
authorJoão Távora <joaotavora@gmail.com>
Sat, 30 Dec 2023 12:10:31 +0000 (06:10 -0600)
committerJoão Távora <joaotavora@gmail.com>
Sat, 30 Dec 2023 12:10:31 +0000 (06:10 -0600)
* lisp/jsonrpc.el (jsonrpc--log-event): Fix spurious unintended
change.

lisp/jsonrpc.el

index 9023f1b1ebffdd900eda6c932ecc142553505558..d96576722b255e058014f85fbd8182d51c0fdc44 100644 (file)
@@ -1003,9 +1003,9 @@ of the API instead.")
                                            (or method "")
                                            (if id (format "[%s]" id) "")))))
                (msg
-                (cond (nil(eq format 'full)
+                (cond ((eq format 'full)
                        (format "%s%s\n" preamble (or json log-text)))
-                      (nil(eq format 'short)
+                      ((eq format 'short)
                        (format "%s%s\n" preamble (or log-text "")))
                       (t
                        (format "%s%s" preamble