mirror of https://github.com/goharbor/harbor.git
fixes immutable rule issue (#14849)
fixes #14568 Signed-off-by: Wang Yan <wangyan@vmware.com>
This commit is contained in:
parent
5cd7594a6a
commit
b714baae87
|
@ -50,7 +50,7 @@ func (rm *Matcher) Match(ctx context.Context, pid int64, c iselector.Candidate)
|
|||
// match tag according to the tag selectors
|
||||
var tagCandidates []*iselector.Candidate
|
||||
tagSelectors := r.TagSelectors
|
||||
if len(tagSelectors) < 0 {
|
||||
if len(tagSelectors) < 1 {
|
||||
continue
|
||||
}
|
||||
tagSelector := r.TagSelectors[0]
|
||||
|
|
Loading…
Reference in New Issue