diff --git a/models/workflow/workflow.go b/models/workflow/workflow.go index 4539798..6a20fa0 100644 --- a/models/workflow/workflow.go +++ b/models/workflow/workflow.go @@ -196,7 +196,7 @@ func plan[T resources.ResourceInterface](dt tools.DataType, wf *Workflow, priced priced.SetLocationEnd(*e) } } - if e := end(started, priced.GetExplicitDurationInS()); end != nil { + if e := end(started, priced.GetExplicitDurationInS()); e != nil { priced.SetLocationEnd(*e) } resources = append(resources, realItem.(T))