Fix switch code style