Compare commits

..

1 Commits

Author SHA1 Message Date
1416ab1b3a update golangci
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build was killed
2023-06-04 19:26:25 +03:00

View File

@@ -89,7 +89,14 @@ func (p *Provider) getEventKvs(events []*client.Event) ([]*pb.KeyValue, []*pb.Ke
func (p *Provider) resolve(key string, kvs []*pb.KeyValue) (config.Variable, error) {
for _, kv := range kvs {
if kv != nil && string(kv.Key) == key {
switch {
case kv == nil:
return config.Variable{
Name: key,
Provider: p.Name(),
Value: nil,
}, nil
case string(kv.Key) == key:
return config.Variable{
Value: value.JBytes(kv.Value),
Name: key,