Liking cljdoc? Tell your friends :D
Clojure only.

noahtheduke.splint.rules.lint.if-not-do


if-not-doclj

when-not already defines an implicit do. Rely on it.

Examples:

; bad (if-not x (do (println :a) (println :b) :c))

; good (if-not x (println :a) (println :b) :c)

`when-not` already defines an implicit `do`. Rely on it.

Examples:

; bad
(if-not x (do (println :a) (println :b) :c))

; good
(if-not x (println :a) (println :b) :c)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close