Skip to content

Commit

Permalink
Added linting
Browse files Browse the repository at this point in the history
  • Loading branch information
duedares-rvj committed Oct 24, 2024
1 parent 6766ca1 commit d6ca71a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package provider
import (
"context"
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
"os"

"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/auth0/terraform-provider-auth0/internal/auth0/flow"

"github.com/auth0/terraform-provider-auth0/internal/auth0/form"
Expand Down Expand Up @@ -178,7 +179,7 @@ func New() *schema.Provider {
provider.ConfigureContextFunc = func(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) {
var diags diag.Diagnostics

// Check required environment variables
// Check required environment variables.
requiredEnvVars := []string{"AUTH0_DOMAIN", "AUTH0_CLIENT_ID", "AUTH0_CLIENT_SECRET"}
for _, varName := range requiredEnvVars {
value, exists := os.LookupEnv(varName)
Expand All @@ -195,7 +196,7 @@ func New() *schema.Provider {
return nil, diags
}

// Call the original configuration function if no errors
// Call the original configuration function if no errors.
return config.ConfigureProvider(&provider.TerraformVersion)(ctx, d)
}

Expand Down

0 comments on commit d6ca71a

Please sign in to comment.