diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-11-29 15:45:17 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-11-29 15:45:51 +0000 |
commit | 583b2c5e0c0cc2528ffdb7f547d379aca0c69564 (patch) | |
tree | fa9f305585aad812a3e2cdebb028ec017eaca921 /nrepl-client.el | |
parent | 1582f2f2ada70335b54b171b3487a972330c7241 (diff) |
Remove pointless safeguard
Diffstat (limited to 'nrepl-client.el')
-rw-r--r-- | nrepl-client.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nrepl-client.el b/nrepl-client.el index a7f5bcd9..8a4d9465 100644 --- a/nrepl-client.el +++ b/nrepl-client.el @@ -897,8 +897,7 @@ REQUEST is a pair list of the form (\"op\" \"operation\" \"par1-name\" \"par1\" ... ). See the code of `nrepl-request:clone', `nrepl-request:stdin', etc. Return the ID of the sent message." - (with-current-buffer (if (bufferp connection) connection - (current-buffer)) + (with-current-buffer connection (unless (or (plist-get request "session") (not nrepl-session)) (setq request (append request (list "session" nrepl-session)))) |