Skip to content

Commit

Permalink
Rename variable to avoid shadowing (#455)
Browse files Browse the repository at this point in the history
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
  • Loading branch information
m1kola committed Oct 12, 2023
1 parent c24fdbc commit f178f75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/resolution/variables/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func (b *BundleVariable) Dependencies() []*catalogmetadata.Bundle {

func NewBundleVariable(bundle *catalogmetadata.Bundle, dependencies []*catalogmetadata.Bundle) *BundleVariable {
dependencyIDs := make([]deppy.Identifier, 0, len(dependencies))
for _, bundle := range dependencies {
dependencyIDs = append(dependencyIDs, BundleVariableID(bundle))
for _, dependency := range dependencies {
dependencyIDs = append(dependencyIDs, BundleVariableID(dependency))
}
var constraints []deppy.Constraint
if len(dependencyIDs) > 0 {
Expand Down

0 comments on commit f178f75

Please sign in to comment.