module RuboCop::Cop::Style::ConditionalAssignmentHelper

def expand_when_branches(when_branches)

We only need the contents of the branch, not the condition.
`when` nodes contain the entire branch including the condition.
def expand_when_branches(when_branches)
  when_branches.map(&:body)
end