Skip to content

Commit

Permalink
fix: nil pointer error (#920)
Browse files Browse the repository at this point in the history
  • Loading branch information
adaam2 committed Sep 6, 2024
1 parent 547bbfa commit 11f2b7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/run/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,12 @@ func (w *Workflow) RunInner(ctx context.Context) error {
}

_, sourceRes, err := w.RunSource(ctx, w.RootStep, w.Source, "")
w.SourceResults[sourceRes.Source] = sourceRes
if err != nil {
return err
}

if sourceRes != nil {
w.SourceResults[sourceRes.Source] = sourceRes
}
}

if !w.SkipCleanup {
Expand Down

0 comments on commit 11f2b7d

Please sign in to comment.