Liking cljdoc? Tell your friends :D

noahtheduke.splint.rules.lint.missing-body-in-when


missing-body-in-whenclj

when calls should have at least 1 expression after the condition.

Examples:

; bad (when true) (when (some-func))

; good (when true (do-stuff)) (when (some-func) (do-stuff))

`when` calls should have at least 1 expression after the condition.

Examples:

; bad
(when true)
(when (some-func))

; good
(when true (do-stuff))
(when (some-func) (do-stuff))
sourceraw docstring

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

× close