diff options
author | Alex Kost <alezost@gmail.com> | 2016-04-10 14:05:00 +0300 |
---|---|---|
committer | Alex Kost <alezost@gmail.com> | 2016-04-10 14:05:00 +0300 |
commit | fe8de9186c80c447793e401ab15644b5f14a5aa5 (patch) | |
tree | bf06a79b7fc9f9ed80d45b2bc6503e201102d756 /elisp/geiser-connection.el | |
parent | d12d33ae340198db6ea68a3ca60b4133e7e8d161 (diff) | |
download | geiser-fe8de9186c80c447793e401ab15644b5f14a5aa5.tar.gz geiser-fe8de9186c80c447793e401ab15644b5f14a5aa5.tar.bz2 |
Remove double call in 'geiser-con--connection-add-request'
Avoid calling 'geiser-con--request-string' twice by wrapping it into
'let'.
Diffstat (limited to 'elisp/geiser-connection.el')
-rw-r--r-- | elisp/geiser-connection.el | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/elisp/geiser-connection.el b/elisp/geiser-connection.el index e466cd3..675fb25 100644 --- a/elisp/geiser-connection.el +++ b/elisp/geiser-connection.el @@ -228,16 +228,17 @@ (geiser-con--connection-completed con req))) (defun geiser-con--connection-add-request (c r) - (geiser-log--info "REQUEST: <%s>: %s" - (geiser-con--request-id r) - (geiser-con--request-string r)) - (geiser-con--connection-activate c) - (tq-enqueue (geiser-con--connection-tq c) - (concat (geiser-con--request-string r) "\n") - (geiser-con--connection-eot c) - r - 'geiser-con--process-completed-request - t)) + (let ((rstr (geiser-con--request-string r))) + (geiser-log--info "REQUEST: <%s>: %s" + (geiser-con--request-id r) + rstr) + (geiser-con--connection-activate c) + (tq-enqueue (geiser-con--connection-tq c) + (concat rstr "\n") + (geiser-con--connection-eot c) + r + 'geiser-con--process-completed-request + t))) ;;; Message sending interface: |