superfly / flyctl

append possibly assigns to a wrong variable CRT-D0001
Bug risk
Minor
2 months ago3 years old
append result not assigned to the same slice
365	// We should go for the primary canddiates first, but the secondary candidates are also valid
366	var candidates []*fly.Machine
367	if allowSecondaryRegion {
368		candidates = append(primaryCandidates, secondaryCandidates...)369	} else {
370		candidates = primaryCandidates
371	}