Skip to content

Commit d0a8359

Browse files
committed
Clean up some warning in start-clojure-process
As per title.
1 parent 3d0cabf commit d0a8359

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/lambdaisland/launchpad.clj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
((run-process opts) ctx))
515515
([{:keys [cmd prefix working-dir
516516
background? timeout-ms check-exit-code? env
517-
color show-command?]
517+
show-command?]
518518
:or {working-dir "."
519519
check-exit-code? true
520520
show-command? true}}]
@@ -539,9 +539,8 @@
539539
(.waitFor process timeout-ms TimeUnit/MILLISECONDS)
540540
(.waitFor process))]
541541
(when (and check-exit-code? (not= 0 exit))
542-
(do
543-
(println (str prefix) "Exited with non-zero exit code: " exit)
544-
(System/exit exit)))
542+
(println prefix "Exited with non-zero exit code: " exit)
543+
(System/exit exit))
545544
ctx))))))
546545

547546
(defn start-clojure-process [{:keys [aliases nrepl-port] :as ctx}]

0 commit comments

Comments
 (0)