File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -385,17 +385,19 @@ specified, return speced vars from all namespaces."
385
385
[v]
386
386
(let [v (if-not (seq? v) (list 'var v) v)
387
387
sym (second v)]
388
- `(when-let [checked# (cljs.spec/instrument* ~v)]
389
- (set! ~sym checked#)
388
+ `(do
389
+ (when-let [checked# (cljs.spec/instrument* ~v)]
390
+ (set! ~sym checked#))
390
391
~v)))
391
392
392
393
(defmacro unstrument
393
394
" Undoes instrument on the var at v, a var or symbol. Idempotent."
394
395
[v]
395
396
(let [v (if-not (seq? v) (list 'var v) v)
396
397
sym (second v)]
397
- `(when-let [raw# (cljs.spec/unstrument* ~v)]
398
- (set! ~sym raw#)
398
+ `(do
399
+ (when-let [raw# (cljs.spec/unstrument* ~v)]
400
+ (set! ~sym raw#))
399
401
~v)))
400
402
401
403
(defmacro instrument-ns
You can’t perform that action at this time.
0 commit comments