prysmaticlabs / prysm

Redundant error checking RVV-B0005
Style
Major
1 occurrence in this check
redundant if ...; err != nil check, just return error instead.
331		return sortedIndices[i] < sortedIndices[j]
332	})
333
334	if err := committeeCache.AddCommitteeShuffledList(ctx, &cache.Committees{335		ShuffledIndices: shuffledIndices,
336		CommitteeCount:  uint64(params.BeaconConfig().SlotsPerEpoch.Mul(count)),
337		Seed:            seed,