Skip to content

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iph0 committed Apr 12, 2024
1 parent 1a84abf commit 301e56f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ func (p *Processor) Load(locators ...any) (M, error) {

if err != nil {
return nil, err
} else if layer == nil {
continue
}

layers[i] = layer
Expand Down Expand Up @@ -228,6 +230,8 @@ func (p *Processor) processLayer(layer any) (any, error) {

if err != nil {
return nil, err
} else if !lyr.IsValid() {
return nil, nil
}

return lyr.Interface(), nil
Expand Down Expand Up @@ -570,7 +574,7 @@ func (p *Processor) mergeLayers(directiveKey reflect.Value, node reflect.Value,
var layers []any

for _, name := range nameList {
layer, err := p.resolveNode(name)
layer, err := p.fetchNode(name)

if err != nil {
return reflect.Value{}, err
Expand Down

0 comments on commit 301e56f

Please sign in to comment.