mirror of
https://github.com/goharbor/harbor
synced 2024-09-21 06:45:37 +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
|
||||
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
Block a user