Fork me on GitHub
#clj-kondo
<
2023-06-20
>
Stefan07:06:37

In #clojurescript I described: https://clojurians.slack.com/archives/C03S1L9DN/p1687243572824949. Basically, when doing this:

(-> (js/Promise.resolve {:a 1})
    (.then #(:a %))
    (.then prn))
clj-kondo flags a reduntant fn wrapper. However, (.then :a) is not valid. So this is a false positive in clj-kondo. Should I file a bug for this, or should people just ignore these cases?

borkdude07:06:54

bug report is fine, perhaps we can ignore it in interop cases in .cljs since keywords cannot be used as regular JS functions (unfortunately)

👍 2