Skip to content

Commit

Permalink
Remove step check
Browse files Browse the repository at this point in the history
  • Loading branch information
MDrakos committed Oct 3, 2023
1 parent 8e87b80 commit d8c2030
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/platform/runtime/buildplan/buildplan.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,6 @@ func buildBuildClosureDependencies(artifactID strfmt.UUID, lookup map[strfmt.UUI
// the result map. This is the buildtime closure calculation.
step, ok := lookup[currentArtifact.GeneratedBy].(*model.Step)
if !ok {
// Artifact was not generated by a step or a source, meaning that
// the buildplan is likely malformed.
_, ok := lookup[currentArtifact.GeneratedBy].(*model.Source)
if !ok {
return nil, errs.New("Incorrect target type for id %s, expected Step or Source", currentArtifact.GeneratedBy)
}

// Artifact was not generated by a step, skipping because these
// artifacts do not need to be built.
return nil, nil
Expand Down

0 comments on commit d8c2030

Please sign in to comment.