convox / convox

Type assertion to current type GO-W5001
Bug risk
Major
12 days agoa year old
type assertion to the same type: t["limit"] already has type interface{}
418			}
419			v.Targets = t
420		}
421		if w, ok := t["limit"].(interface{}); ok {422			var lmt ServiceResourceLimit
423			if err := remarshal(w, &lmt); err != nil {
424				return err
type assertion to the same type: t["targets"] already has type interface{}
411		if w, ok := t["memory"].(int); ok {
412			v.Memory = w
413		}
414		if w, ok := t["targets"].(interface{}); ok {415			var t ServiceScaleTargets
416			if err := remarshal(w, &t); err != nil {
417				return err
type assertion to the same type: t["gpu"] already has type interface{}
401		if w, ok := t["cpu"].(int); ok {
402			v.Cpu = w
403		}
404		if w, ok := t["gpu"].(interface{}); ok {405			var g ServiceScaleGpu
406			if err := remarshal(w, &g); err != nil {
407				return err
type assertion to the same type: t["count"] already has type interface{}
391		}
392		v.Count = c
393	case map[interface{}]interface{}:
394		if w, ok := t["count"].(interface{}); ok {395			var c ServiceScaleCount
396			if err := remarshal(w, &c); err != nil {
397				return err