Pattern: Use of if x; ...
instead of ternary
Issue: -
Checks for uses of semicolon in if
statements. Use the ternary operator instead.
# bad
result = if some_condition; something else something_else end
# good
result = some_condition ? something : something_else