From d9554288db02802e00db57d98c16b3205d6b6d52 Mon Sep 17 00:00:00 2001 From: hemarina Date: Fri, 20 Sep 2024 14:56:36 -0700 Subject: [PATCH] golangci-lint fix --- cli/azd/pkg/azapi/standard_deployments.go | 2 +- cli/azd/pkg/infra/scope.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/azd/pkg/azapi/standard_deployments.go b/cli/azd/pkg/azapi/standard_deployments.go index 19a2733b712..10de3b65c50 100644 --- a/cli/azd/pkg/azapi/standard_deployments.go +++ b/cli/azd/pkg/azapi/standard_deployments.go @@ -760,7 +760,7 @@ func validatePreflightError( var errPreflight PreflightErrorResponse errOnRawResponse = json.Unmarshal(body, &errPreflight) if errOnRawResponse != nil { - return fmt.Errorf("failed to unmarshal preflight error response to %s: %v", typeMessage, errOnRawResponse) + return fmt.Errorf("failed to unmarshal preflight error response to %s: %w", typeMessage, errOnRawResponse) } if len(errPreflight.Error.Details) > 0 { diff --git a/cli/azd/pkg/infra/scope.go b/cli/azd/pkg/infra/scope.go index 998422b005d..1c977c070d7 100644 --- a/cli/azd/pkg/infra/scope.go +++ b/cli/azd/pkg/infra/scope.go @@ -257,7 +257,8 @@ func (s *SubscriptionDeployment) DeploymentUrl(ctx context.Context) (string, err func (s *SubscriptionDeployment) ValidatePreflight( ctx context.Context, template azure.RawArmTemplate, parameters azure.ArmParameters, tags map[string]*string, ) error { - return s.deploymentService.ValidatePreflightToSubscription(ctx, s.subscriptionId, s.location, s.name, template, parameters, tags) + return s.deploymentService.ValidatePreflightToSubscription(ctx, s.subscriptionId, s.location, + s.name, template, parameters, tags) } // Deploy a given template with a set of parameters.