Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func Update has a cyclomatic complexity of 64 with "critical" risk
1585	return locs, errs
1586}
1587
1588func (s *server) Update(ctx context.Context, req *payload.Update_Request) (res *payload.Object_Location, err error) {1589	ctx, span := trace.StartSpan(grpc.WithGRPCMethod(ctx, vald.PackageName+"."+vald.UpdateRPCServiceName+"/"+vald.UpdateRPCName), apiName+"/"+vald.UpdateRPCName)
1590	defer func() {
1591		if span != nil {