prysmaticlabs / prysm

Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func ProcessRegistryUpdates has a cyclomatic complexity of 16 with "high" risk
 91//	 for index in activation_queue[:get_validator_churn_limit(state)]:
 92//	     validator = state.validators[index]
 93//	     validator.activation_epoch = compute_activation_exit_epoch(get_current_epoch(state))
 94func ProcessRegistryUpdates(ctx context.Context, state state.BeaconState) (state.BeaconState, error) { 95	currentEpoch := time.CurrentEpoch(state)
 96	vals := state.Validators()
 97	var err error