class RuboCop::Cop::Style::MapCompactWithConditionalBlock

def truthy_branch?(node)

def truthy_branch?(node)
  if node.parent.begin_type?
    truthy_branch_for_guard?(node)
  elsif node.parent.next_type?
    truthy_branch_for_if?(node.parent)
  else
    truthy_branch_for_if?(node)
  end
end