Skip to content

Commit

Permalink
remove default builtin config
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Gaikwad <[email protected]>
  • Loading branch information
pranavgaikwad committed Jul 17, 2024
1 parent f416c21 commit 29142f1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,8 @@ func GetConfig(filepath string) ([]Config, error) {
if err != nil {
return nil, err
}
foundBuiltin := false
for idx := range configs {
c := &configs[idx]
if c.Name == builtinConfig.Name {
foundBuiltin = true
}
// default to system-wide proxy
if c.Proxy == nil {
c.Proxy = (*Proxy)(httpproxy.FromEnvironment())
Expand All @@ -182,9 +178,6 @@ func GetConfig(filepath string) ([]Config, error) {

}
}
if !foundBuiltin {
configs = append(configs, builtinConfig)
}

// Validate provider names for duplicate providers.
if err := validateProviderName(configs); err != nil {
Expand Down

0 comments on commit 29142f1

Please sign in to comment.