Skip to content

Commit

Permalink
golangci-lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hemarina committed Sep 20, 2024
1 parent 4531513 commit d955428
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/azd/pkg/azapi/standard_deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion cli/azd/pkg/infra/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Check failure on line 260 in cli/azd/pkg/infra/scope.go

View workflow job for this annotation

GitHub Actions / azd-lint (ubuntu-latest)

File is not `gofmt`-ed with `-s` (gofmt)

Check failure on line 260 in cli/azd/pkg/infra/scope.go

View workflow job for this annotation

GitHub Actions / azd-lint (windows-latest)

File is not `gofmt`-ed with `-s` (gofmt)
s.name, template, parameters, tags)
}

// Deploy a given template with a set of parameters.
Expand Down

0 comments on commit d955428

Please sign in to comment.