]> git.eshelyaron.com Git - emacs.git/commitdiff
Etoomanylambdas
authorJoão Távora <joaotavora@gmail.com>
Mon, 7 May 2018 11:18:08 +0000 (12:18 +0100)
committerJoão Távora <joaotavora@gmail.com>
Mon, 7 May 2018 11:18:08 +0000 (12:18 +0100)
* eglot.el (eglot--sync-request): Remove a lambda.

lisp/progmodes/eglot.el

index d6ecdfed188f29ca9413a95b74eea0e9503fcaf0..321307df29af5e60cbfd6f816b28bd5a805adb7a 100644 (file)
@@ -663,9 +663,8 @@ Meaning only return locally if successful, otherwise exit non-locally."
                              (lambda (&key code message &allow-other-keys)
                                (eglot--error "Oops: %s: %s" code message)))
                   :timeout-fn (lambda ()
-                                (lambda ()
-                                  (eglot--error
-                                   "Tired of waiting for reply to sync request")))
+                                (eglot--error
+                                 "Tired of waiting for reply to sync request"))
                   :async-p nil))
 
 (cl-defun eglot--notify (process method params)