Fork me on GitHub

Here are some possible solutions from the clj-kondo clj-kondo hooks workshop! cc @U3ZG4CAF8


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