Skip to content

Commit 08c6af8

Browse files
committed
Fix lint
1 parent 801457c commit 08c6af8

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

cli/azd/cmd/container.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,10 @@ func registerCommonDependencies(container *ioc.NestedContainer) {
182182

183183
envTypeValue, err := cmd.Flags().GetString(internal.EnvironmentTypeFlagName)
184184
if err != nil {
185-
log.Printf("'%s' command asked for envTypeFlag, but envTypeFlag was not included in cmd.Flags().", cmd.CommandPath())
185+
log.Printf(
186+
"'%s' command asked for envTypeFlag, but envTypeFlag was not included in cmd.Flags().",
187+
cmd.CommandPath(),
188+
)
186189
envTypeValue = ""
187190
}
188191

cli/azd/internal/env_flag.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/spf13/pflag"
1010
)
1111

12-
// EnvFlag is a flag that represents the environment name and type. Actions which inject an environment should also use this flag
13-
// so the user can control what environment is loaded in a uniform way across all our commands.
12+
// EnvFlag is a flag that represents the environment name and type. Actions which inject an environment
13+
// should also use this flag so the user can control what environment is loaded in a uniform way across all our commands.
1414
type EnvFlag struct {
1515
EnvironmentName string
1616
EnvironmentType string

cli/azd/pkg/environment/manager.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,11 @@ func (m *manager) LoadOrInitInteractiveWithType(ctx context.Context, environment
204204
return env, nil
205205
}
206206

207-
func (m *manager) loadOrInitEnvironmentWithType(ctx context.Context, environmentName, envType string) (*Environment, bool, error) {
207+
func (m *manager) loadOrInitEnvironmentWithType(
208+
ctx context.Context,
209+
environmentName,
210+
envType string,
211+
) (*Environment, bool, error) {
208212
// If there's a default environment, use that
209213
if environmentName == "" {
210214
var err error

cli/azd/test/mocks/mockenv/mock_manager.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ func (m *MockEnvManager) LoadOrInitInteractive(ctx context.Context, name string)
2424
return args.Get(0).(*environment.Environment), args.Error(1)
2525
}
2626

27-
func (m *MockEnvManager) LoadOrInitInteractiveWithType(ctx context.Context, name, envType string) (*environment.Environment, error) {
27+
func (m *MockEnvManager) LoadOrInitInteractiveWithType(
28+
ctx context.Context,
29+
name,
30+
envType string,
31+
) (*environment.Environment, error) {
2832
args := m.Called(ctx, name, envType)
2933
return args.Get(0).(*environment.Environment), args.Error(1)
3034
}

0 commit comments

Comments
 (0)