class RuboCop::Cop::Style::UnneededCondition

def make_ternary_form(node)

def make_ternary_form(node)
  _condition, if_branch, else_branch = *node
  ternary_form = [if_branch.source,
                  else_source(else_branch)].join(' || ')
  if node.parent && node.parent.send_type?
    "(#{ternary_form})"
  else
    ternary_form
  end
end