Skip to content

Commit a67f57c

Browse files
committed
Simplify shell code
1 parent 553d79f commit a67f57c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/clj_ssh/ssh.clj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,10 @@ config options."
619619
(.setPty shell (boolean (opts :pty))))
620620
(when (contains? opts :agent-forwarding)
621621
(.setAgentForwarding shell (boolean (opts :agent-forwarding))))
622-
(let [resp {:channel shell
623-
:out (or out (.getInputStream shell))
624-
:in (or in (.getOutputStream shell))}]
625-
(connect-channel shell)
626-
resp)))
622+
(connect-channel shell)
623+
{:channel shell
624+
:out (or out (.getInputStream shell))
625+
:in (or in (.getOutputStream shell))}))
627626

628627
(defn ssh-shell
629628
"Run a ssh-shell."

0 commit comments

Comments
 (0)