superfly / flyctl

Exported function returning value of unexported type RVV-B0011
Anti-pattern
Critical
1 occurrence in this check
exported func NewMachineSet returns unexported type *machine.machineSet, which can be annoying to use
 30	machines []LeasableMachine
 31}
 32
 33func NewMachineSet(flapsClient *flaps.Client, io *iostreams.IOStreams, machines []*fly.Machine) *machineSet { 34	leaseMachines := make([]LeasableMachine, 0)
 35	for _, m := range machines {
 36		leaseMachines = append(leaseMachines, NewLeasableMachine(flapsClient, io, m))