prysmaticlabs / prysm

Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func ConfigureBeaconChain has a cyclomatic complexity of 23 with "high" risk
172
173// ConfigureBeaconChain sets the global config based
174// on what flags are enabled for the beacon-chain client.
175func ConfigureBeaconChain(ctx *cli.Context) error {176	complainOnDeprecatedFlags(ctx)
177	cfg := &Flags{}
178	if ctx.Bool(devModeFlag.Name) {