Skip to content

Commit 583b2c5

Browse files
committed
Remove pointless safeguard
1 parent 1582f2f commit 583b2c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nrepl-client.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,8 +897,7 @@ REQUEST is a pair list of the form (\"op\" \"operation\" \"par1-name\"
897897
\"par1\" ... ). See the code of `nrepl-request:clone',
898898
`nrepl-request:stdin', etc.
899899
Return the ID of the sent message."
900-
(with-current-buffer (if (bufferp connection) connection
901-
(current-buffer))
900+
(with-current-buffer connection
902901
(unless (or (plist-get request "session")
903902
(not nrepl-session))
904903
(setq request (append request (list "session" nrepl-session))))

0 commit comments

Comments
 (0)