jfmengels/elm-lint/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

Lint.Rules.NoUselessIf

rule : LintRule

Reports when both paths of an If expression result will lead to the same value.

rules =
    [ NoUselessIf.rule
    ]

Fail

if condition then
    value
else
    value

Success

if condition then
    value1
else
    value2