prysmaticlabs / prysm

Nested if can be replaced with else if CRT-A0011
Anti-pattern
Major
1 occurrence in this check
can replace 'else {if cond {}}' with 'else if cond {}'
214			return nil, false, errors.New("underflow: zero validators")
215		}
216		index = primitives.ValidatorIndex(numVals - 1)
217	} else {218		if !isElectraOrLater {
219			if err := helpers.IncreaseBalance(beaconState, index, amount); err != nil {
220				return nil, newValidator, err