Skip to content

Commit af084ce

Browse files
committed
Fix loop to print
1 parent d4245b7 commit af084ce

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/leiningen/clojure_lsp/binary.clj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,16 @@
6969
(let [p (process/process {:cmd (concat [(.getAbsolutePath path)] args)})]
7070
(future
7171
(with-open [out-rdr ^BufferedReader (io/reader (:out p))]
72-
(loop [max 10]
72+
(loop []
7373
(when-let [line (.readLine out-rdr)]
7474
(println line)
75-
(when (pos? max)
76-
(recur (dec max)))))))
75+
(recur)))))
7776
(future
7877
(with-open [out-rdr ^BufferedReader (io/reader (:err p))]
79-
(loop [max 10]
78+
(loop []
8079
(when-let [line (.readLine out-rdr)]
8180
(println line)
82-
(when (pos? max)
83-
(recur (dec max)))))))
81+
(recur)))))
8482
@p))
8583

8684
(defn run! [args]

0 commit comments

Comments
 (0)