prysmaticlabs / prysm

Redundant error checking RVV-B0005
Style
Major
1 occurrence in this check
redundant if ...; err != nil check, just return error instead.
 381	if payloadRoot != headerRoot {
 382		return errors.New("cannot unblind with different execution data")
 383	}
 384	if err := b.SetExecution(e); err != nil { 385		return err
 386	}
 387	return nil