From: João Távora Date: Sat, 30 Dec 2023 12:10:31 +0000 (-0600) Subject: ; Jsonrpc: fix spurious unintended change X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e438215f69fcd9e536981f90b2ff30f72c4a757e;p=emacs.git ; Jsonrpc: fix spurious unintended change * lisp/jsonrpc.el (jsonrpc--log-event): Fix spurious unintended change. --- 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