jonase/kibit — Issue #13: Extra parenthesis around when-let body
Author: AlexBaranosky
Created: 2012-03-10 06:01:40+00:00
State: open

Hi, Just ran 0.0.2 against Midje's code base, and received this message:

```clojure
[64] Consider (when-not (instance? Throwable throwable) ((throw (user-error "Right side of =throws=> should extend Throwable."))))

instead of
(when (not (instance? Throwable throwable)) (throw (user-error "Right side of =throws=> should extend Throwable.")))
```

Looks good, except ((throw ... has one too many layers of parenthesis.

Where as the below works just fine:

```clojure
(when-not (instance? Throwable throwable)
(throw (user-error "Right side of =throws=> should extend Throwable.")))
```