Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
2 occurrences in this check
func Start has a cyclomatic complexity of 40 with "very-high" risk
 83	return i, nil
 84}
 85
 86func (idx *index) Start(ctx context.Context) (<-chan error, error) { 87	dech, err := idx.client.Start(ctx)
 88	if err != nil {
 89		return nil, err
func FromGRPCStatus has a cyclomatic complexity of 17 with "high" risk
 32	StatusError         = ocodes.Error
 33)
 34
 35func FromGRPCStatus(code codes.Code, msg string) []attribute.KeyValue { 36	switch code {
 37	case codes.OK:
 38		return StatusCodeOK(msg)