From e438215f69fcd9e536981f90b2ff30f72c4a757e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 30 Dec 2023 06:10:31 -0600 Subject: [PATCH] ; Jsonrpc: fix spurious unintended change * lisp/jsonrpc.el (jsonrpc--log-event): Fix spurious unintended change. --- lisp/jsonrpc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/jsonrpc.el b/lisp/jsonrpc.el index 9023f1b1ebf..d96576722b2 100644 --- a/lisp/jsonrpc.el +++ b/lisp/jsonrpc.el @@ -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 -- 2.39.5