Skip to content

Commit 3add430

Browse files
authored
1 parent 05be239 commit 3add430

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

project.clj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@
158158
:exclude-namespaces [cider.nrepl.middleware.test-filter-tests]
159159
:ignored-faults {:unused-ret-vals-in-try {cider.nrepl.middleware.profile-test [{:line 25}]}
160160
;; This usage of `proxy` can't avoid reflection warnings given that the `proxy` construct dispatches based on name only:
161-
:reflection {cider.nrepl.middleware.out [{:line 55}
162-
{:line 57}
163-
{:line 59}
164-
{:line 61}
165-
{:line 65}]}
161+
:reflection {cider.nrepl.middleware.out [{:line 54}
162+
{:line 56}
163+
{:line 58}
164+
{:line 60}
165+
{:line 62}
166+
{:line 64}]}
166167
:suspicious-test {cider.nrepl.middleware.profile-test [{:line 25}]}}}}]})

src/cider/nrepl/middleware/out.clj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818

1919
(declare unsubscribe-session)
2020

21-
(defn original-output
22-
"Store the values of the original output streams so we can refer to them."
23-
^PrintWriter
24-
[k]
25-
({:out *out*
26-
:err *err*} k))
21+
(defonce original-output
22+
^{:doc "Store the values of the original output streams so we can refer to them.
23+
Please do not inline; they must not be recomputed at runtime."}
24+
{:out *out*
25+
:err *err*})
2726

2827
(defmacro with-out-binding
2928
"Run body with v bound to the output stream of each msg in msg-seq.

0 commit comments

Comments
 (0)