From c529eca1ea384c10a191f155dd75b41f99f5cd3e Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sat, 4 Mar 2017 10:08:46 +0200 Subject: [PATCH] Improve the code style a bit --- nrepl-client.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nrepl-client.el b/nrepl-client.el index 7b39e8896..b63f482ca 100644 --- a/nrepl-client.el +++ b/nrepl-client.el @@ -546,8 +546,10 @@ If NO-ERROR is non-nil, show messages instead of throwing an error." (prog1 (list :proc (open-network-stream "nrepl-connection" nil host port) :host host :port port) (message "[nREPL] Direct connection established")) - (error (let ((mes "[nREPL] Direct connection failed")) - (if no-error (message mes) (error mes)) + (error (let ((msg "[nREPL] Direct connection failed")) + (if no-error + (message msg) + (error msg)) nil))))) (defun nrepl--ssh-tunnel-connect (host port)