diff --git a/src/jonase/kibit/rules/control_structures.clj b/src/jonase/kibit/rules/control_structures.clj index 1d611b6..bea1d4a 100644 --- a/src/jonase/kibit/rules/control_structures.clj +++ b/src/jonase/kibit/rules/control_structures.clj @@ -7,7 +7,9 @@ (if (not ?x) ?y ?z) (if-not ?x ?y ?z) (when (not ?x) . ?y) (when-not ?x ?y) (if true ?x ?y) ?x - (when true . ?x) (do . ?x)}) ; Maybe this should be (do ?x) + (when true . ?x) (do . ?x) + (do ?x) ?x + (when-not true ?x) "removing this dead code"}) (comment (when true