prysmaticlabs / prysm

Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func CallContext has a cyclomatic complexity of 20 with "high" risk
147
148func (*RPCClient) Close() {}
149
150func (r *RPCClient) CallContext(ctx context.Context, obj interface{}, methodName string, args ...interface{}) error {151	if r.BlockNumMap != nil && methodName == "eth_getBlockByNumber" {
152		val, ok := args[0].(string)
153		if !ok {