There is no need for this code to be inside the switch, or use goto.