From d00c5166a5a4266eb0e45624bad6e453ea1eeeaf Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Wed, 30 Mar 2022 15:19:08 -0700 Subject: [PATCH] Fix CI error from linter having opinions about loops --- packages/cli/internal/pkg/cli/context/manager.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/cli/internal/pkg/cli/context/manager.go b/packages/cli/internal/pkg/cli/context/manager.go index e0f410fb9..2583365ed 100644 --- a/packages/cli/internal/pkg/cli/context/manager.go +++ b/packages/cli/internal/pkg/cli/context/manager.go @@ -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...)