tangled
alpha
login
or
join now
noahbogart.com
/
sinker
0
fork
atom
catch exceptions hook, line, and sinker
0
fork
atom
overview
issues
pulls
pipelines
Update clj-kondo hook
noahbogart.com
7 months ago
a2fcda61
c1865f02
+2
-8
2 changed files
expand all
collapse all
unified
split
.clj-kondo
imports
io.github.noahtheduke
sinker
hooks
sinker
try_plus.clj
resources
clj-kondo.exports
io.github.noahtheduke
sinker
hooks
sinker
try_plus.clj
+1
-4
.clj-kondo/imports/io.github.noahtheduke/sinker/hooks/sinker/try_plus.clj
···
5
5
(defn parse-exprs
6
6
[clause]
7
7
(if (and (api/list-node? clause) (= 'catch (api/sexpr (first (:children clause)))))
8
8
-
(let [[catch-token pred & body] (:children clause)
9
9
-
[id body] (if (symbol? (api/sexpr (first body)))
10
10
-
[(first body) (next body)]
11
11
-
[(api/token-node (gensym "_")) body])]
8
8
+
(let [[catch-token pred id & body] (:children clause)]
12
9
(with-meta
13
10
#_{:clj-kondo/ignore [:discouraged-var]}
14
11
(cond
+1
-4
resources/clj-kondo.exports/io.github.noahtheduke/sinker/hooks/sinker/try_plus.clj
···
5
5
(defn parse-exprs
6
6
[clause]
7
7
(if (and (api/list-node? clause) (= 'catch (api/sexpr (first (:children clause)))))
8
8
-
(let [[catch-token pred & body] (:children clause)
9
9
-
[id body] (if (symbol? (api/sexpr (first body)))
10
10
-
[(first body) (next body)]
11
11
-
[(api/token-node (gensym "_")) body])]
8
8
+
(let [[catch-token pred id & body] (:children clause)]
12
9
(with-meta
13
10
#_{:clj-kondo/ignore [:discouraged-var]}
14
11
(cond