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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close