prysmaticlabs / prysm

Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func CommitteeAssignments has a cyclomatic complexity of 16 with "high" risk
157// 2. Compute all committees.
158// 3. Determine the attesting slot for each committee.
159// 4. Construct a map of validator indices pointing to the respective committees.
160func CommitteeAssignments(161	ctx context.Context,
162	state state.BeaconState,
163	epoch primitives.Epoch,