| Conditions | 4 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package credentials |
||
| 20 | func (p *providerChain) resolve() (*Configuration, error) { |
||
| 21 | for _, provider := range p.Providers { |
||
| 22 | config, err := provider.resolve() |
||
| 23 | if err != nil { |
||
| 24 | return nil, err |
||
| 25 | } else if config == nil { |
||
| 26 | continue |
||
| 27 | } |
||
| 28 | return config, err |
||
| 29 | } |
||
| 30 | return nil, errors.New("No credential found") |
||
| 31 | |||
| 33 |