From 29142f13bbfc8c3b5ddbe3c758504b723780c4e8 Mon Sep 17 00:00:00 2001 From: Pranav Gaikwad Date: Wed, 17 Jul 2024 11:18:57 -0400 Subject: [PATCH] remove default builtin config Signed-off-by: Pranav Gaikwad --- provider/provider.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/provider/provider.go b/provider/provider.go index 710a9f65..4f1fd218 100644 --- a/provider/provider.go +++ b/provider/provider.go @@ -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()) @@ -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 {