Skip to content

Commit c642f3a

Browse files
committed
Refactor repeated code into let binding
1 parent 7b27db9 commit c642f3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cider.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ be reused."
249249
'new)
250250
'new))))
251251
(if exact-buff
252-
(if (and (get-buffer-process exact-buff)
253-
(process-live-p (get-buffer-process exact-buff)))
252+
(if-let ((process (get-buffer-process exact-buff))
253+
(_ (process-live-p process)))
254254
(when (y-or-n-p
255255
(format "REPL buffer already exists (%s). \
256256
Do you really want to create a new one? "

0 commit comments

Comments
 (0)