Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Fix CI error from linter having opinions about loops
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnovak committed Mar 30, 2022
1 parent 1ebaf8f commit d00c516
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/cli/internal/pkg/cli/context/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,7 @@ func (m *Manager) getEnvironmentVars() []string {
// this algorithm.
var dependencyImageKeys []string
for _, imageKey := range relevantImageKeys {
for _, dependencies := range environment.ImageDependencies[imageKey] {
// Collect the dependencies of all the relevant images
dependencyImageKeys = append(dependencyImageKeys, dependencies)
}
dependencyImageKeys = append(dependencyImageKeys, environment.ImageDependencies[imageKey]...)
}
// And add them to the relevant images
relevantImageKeys = append(relevantImageKeys, dependencyImageKeys...)
Expand Down

0 comments on commit d00c516

Please sign in to comment.