func (u *UpgradeSeriesFSM) TransitionTo(state UpgradeSeriesStatus) bool {
	if u.state == state {
		return false
	}

	for _, vertex := range u.vertices[u.state] {
		if vertex == state {
			u.state = state
			return true
		}
	}
	return false
}
// TransitionTo attempts to transition from the current state to the new given
// state. If the state is currently at the requested state, then that's
// classified as a no-op and no transition is required.
TransitionTo attempts to transition from the current state to the new given
state. If the state is currently at the requested state, then that's
classified as a no-op and no transition is required.
// TransitionTo attempts to transition from the current state to the new given // state . If the state is currently at the requested state then that ' s // classified as a no - op and no transition is required .
func (u *UpgradeSeriesFSM) TransitionTo(state UpgradeSeriesStatus) bool {
	if u.state == state {
		return false
	}
	for _, vertex := range u.vertices[u.state] {
		if vertex == state {
			u.state = state
			return true
		}
	}
	return false
}
func ( u * UpgradeSeriesFSM ) TransitionTo ( state UpgradeSeriesStatus ) bool { if u . state == state { return false } for _ , vertex := range u . vertices [ u . state ] { if vertex == state { u . state = state return true } } return false }
TransitionTo attempts to transition from the current state to the new given
state.
TransitionTo attempts to transition from the current state to the new given state .