File tree Expand file tree Collapse file tree 4 files changed +24
-32
lines changed Expand file tree Collapse file tree 4 files changed +24
-32
lines changed Original file line number Diff line number Diff line change 1
- /target
2
- /classes
3
- /checkouts
4
- pom.xml
5
- pom.xml.asc
6
- * .jar
7
- * .class
8
- * .iml
9
- /.lein- *
10
- /.nrepl-port
11
- .hgignore
12
- .hg /
13
- .idea
1
+ .clj-kondo /
2
+ .cpcache /
3
+ .lsp /
Original file line number Diff line number Diff line change
1
+ {:deps {org.clojure/clojure {:mvn/version " 1.11.1" }}
2
+ :aliases {:test {:extra-paths [" test" ]
3
+ :extra-deps {io.github.cognitect-labs/test-runner
4
+ {:git/tag " v0.5.1" :git/sha " dfb30dd" }}
5
+ :main-opts [" -m" " cognitect.test-runner" ]
6
+ :exec-fn cognitect.test-runner.api/test}}}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 53
53
c must be a keyword."
54
54
[condition & [value & {:as handlers}]]
55
55
(assert (and (keyword? condition) (not (#{:trace } condition))))
56
- (let [get-h ( fn [m k] ( if ( contains? m k )
57
- (let [h ( m k )]
58
- (case h
59
- nil ::nil
60
- false ::false
61
- h) )))
56
+ (let [get-h #( when ( contains? % % 2 )
57
+ (let [x ( % % 2 )]
58
+ (case x
59
+ nil ::nil
60
+ false ::false
61
+ x )))
62
62
x (or (get-h *-special-condition-handlers-* condition)
63
63
(get-h handlers :normally )
64
64
(throw (ex-info (str " Unhandled condition " condition)
65
65
{::condition condition
66
66
:value value})))]
67
- (cond (fn? x) ((if (seq handlers)
68
- (apply manage x (apply concat handlers))
69
- x)
70
- value)
71
- (= ::nil x) nil
72
- (= ::false x) false
73
- :else x)))
67
+ (case x
68
+ ::nil nil
69
+ ::false false
70
+ (if (fn? x)
71
+ ((if (seq handlers)
72
+ (apply manage x (apply concat handlers))
73
+ x)
74
+ value)
75
+ x))))
You can’t perform that action at this time.
0 commit comments