class RuboCop::Cop::Performance::CaseWhenSplat
def new_branch_without_then(node, new_condition)
def new_branch_without_then(node, new_condition) new_branch = "\n#{indent_for(node)}when #{new_condition}\n" if node.body "#{new_branch}#{indent_for(node.body)}#{node.body.source}" else new_branch end end