mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 08:25:48 +00:00
fix immutable issue (#14643)
Fixes #14568 Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
c67a5a6145
commit
b39bb0db63
|
@ -48,7 +48,7 @@ func (rm *Matcher) Match(pid int64, c iselector.Candidate) (bool, error) {
|
||||||
// match tag according to the tag selectors
|
// match tag according to the tag selectors
|
||||||
var tagCandidates []*iselector.Candidate
|
var tagCandidates []*iselector.Candidate
|
||||||
tagSelectors := r.TagSelectors
|
tagSelectors := r.TagSelectors
|
||||||
if len(tagSelectors) < 0 {
|
if len(tagSelectors) < 1 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
tagSelector := r.TagSelectors[0]
|
tagSelector := r.TagSelectors[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user