Skip to content

Commit 0d85ad8

Browse files
committed
adjust to new type
Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
1 parent 2bac0ee commit 0d85ad8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

api/ocm/selectors/refsel/interface.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ func (c Component) MatchReference(list accessors.ElementListAccessor, ref access
2525
////////////////////////////////////////////////////////////////////////////////
2626

2727
type compGlob struct {
28-
glob.Glob
28+
*glob.Pattern
2929
}
3030

3131
func (c *compGlob) MatchReference(list accessors.ElementListAccessor, ref accessors.ReferenceAccessor) bool {
32-
if c.Glob == nil {
32+
if c.Pattern == nil {
3333
return false
3434
}
35-
return c.Glob.Match(ref.GetComponentName())
35+
return c.Pattern.Match(ref.GetComponentName())
3636
}
3737

3838
func ComponentGlob(g string) Selector {

0 commit comments

Comments
 (0)