Method: RuboCop::Cop::Style::ParenthesesAroundCondition#on_if

Defined in:
lib/rubocop/cop/style/parentheses_around_condition.rb

#on_if(node) ⇒ Object



62
63
64
65
66
# File 'lib/rubocop/cop/style/parentheses_around_condition.rb', line 62

def on_if(node)
  return if node.ternary?

  process_control_op(node)
end