refs #6142 fix redundantAssignInSwitch