Skip to content

Commit

Permalink
🐛 fixing nit on a PR (#277)
Browse files Browse the repository at this point in the history
fixing nit on a PR

Signed-off-by: Shawn Hurley <[email protected]>
  • Loading branch information
shawn-hurley authored Jul 2, 2024
1 parent 55a18ea commit ac67805
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cmd/analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -1846,14 +1846,15 @@ func (a *analyzeCommand) mergeProviderConfig(defaultConf, optionsConf []provider
}

for _, conf := range optionsConf {
if _, ok := seen[conf.Name]; ok {
// set provider config options
if conf.ContextLines != 0 {
seen[conf.Name].ContextLines = conf.ContextLines
}
if conf.Proxy != nil {
seen[conf.Name].Proxy = conf.Proxy
}
if _, ok := seen[conf.Name]; !ok {
continue
}
// set provider config options
if conf.ContextLines != 0 {
seen[conf.Name].ContextLines = conf.ContextLines
}
if conf.Proxy != nil {
seen[conf.Name].Proxy = conf.Proxy
}
// set init config options
for i, init := range conf.InitConfig {
Expand Down

0 comments on commit ac67805

Please sign in to comment.