concourse / concourse

Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func run has a cyclomatic complexity of 19 with "high" risk
149	return ok, err
150}
151
152func (step *TaskStep) run(ctx context.Context, state RunState, delegate TaskDelegate) (bool, error) {153	logger := lagerctx.FromContext(ctx)
154	logger = logger.Session("task-step", lager.Data{
155		"step-name": step.plan.Name,