Skip to content

Commit

Permalink
fix AddResolver
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Sep 3, 2024
1 parent 69536e3 commit b5b0743
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/ocm/compdesc/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@ func (c *CompoundResolver) LookupComponentVersion(name string, version string) (
func (c *CompoundResolver) AddResolver(r ComponentVersionResolver) {
c.lock.Lock()
defer c.lock.Unlock()
c.resolvers = append(c.resolvers, r)

if r != nil {
c.resolvers = append(c.resolvers, r)
}
}

0 comments on commit b5b0743

Please sign in to comment.