concourse / concourse

Function literal can be simplified CRT-A0018
Anti-pattern
Major
5 months ago4 years old
replace func() []Worker { return fly.GetWorkers() } with fly.GetWorkers
 83				)
 84
 85				By("seeing that there are no workers")
 86				Eventually(func() []Worker { 87					return fly.GetWorkers()
 88				}, 1*time.Minute, 1*time.Second).
 89					Should(HaveLen(0))