Fork me on GitHub
#clj-kondo
<
2022-06-11
>
borkdude14:06:31

Here are some possible solutions from the clj-kondo clj-kondo hooks workshop! https://github.com/clj-kondo/hooks-workshop-clojured-2022/tree/solutions cc @U3ZG4CAF8

pavlosmelissinos12:06:41

Is there any chance I could make clj-kondo warn me that this: (concat v1 (if cond ["new item"] [])) can be rewritten as (concat v1 (when cond ["new item"]))? My instinct tells me no but then again I saw clj-kondo do some type inference magic the other day, so I wouldn't be surprised 🙂 edit: oops, bad timing