clj-commons/kibit

Wrong suggestion for `(fn [x] [x x])`

or opened this issue · 1 comments

or commented

Howdy! I ran into this:

(map (fn [x] [x x]) [1 2 3 4])

will result in this advice:

Consider using:
  x
instead of:
  (fn [x] [x x])

I'm not sure which rule it is trying to apply here.

Hello 👋
It looks like yet another form of #49
My bad. I can't actually tell if it's related.