Pattern: Empty when
Issue: -
This rule checks for the presence of when
branches without a body.
# bad
case foo
when bar then 1
when baz then # nothing
end
# good
case foo
when bar then 1
when baz then 2
end
Pattern: Empty when
Issue: -
This rule checks for the presence of when
branches without a body.
# bad
case foo
when bar then 1
when baz then # nothing
end
# good
case foo
when bar then 1
when baz then 2
end