Pattern: Missing use of ?:
on single line
Issue: -
Ternary operator(?:
) is more common and more concise than if
/then
/else
/end
constructs.
# bad
result = if some_condition then something else something_else end
# good
result = some_condition ? something : something_else