Liking cljdoc? Tell your friends :D
Clojure only.

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


when-not-doclj

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

Examples:

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

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

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

Examples:

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

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

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

× close