mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-15 23:05:57 +01:00
Fix project metadata validate bug (#19746)
Signed-off-by: Yang Jiao <yang.jiao@broadcom.com> Co-authored-by: Yang Jiao <yang.jiao@broadcom.com>
This commit is contained in:
parent
2f2a6462ad
commit
6793da72e3
@ -138,8 +138,8 @@ func (p *projectMetadataAPI) validate(metas map[string]string) (map[string]strin
|
||||
}
|
||||
|
||||
key, value := "", ""
|
||||
// for key, value = range metas {
|
||||
// }
|
||||
for key, value = range metas { // nolint:revive
|
||||
}
|
||||
|
||||
switch key {
|
||||
case proModels.ProMetaPublic, proModels.ProMetaEnableContentTrust, proModels.ProMetaEnableContentTrustCosign,
|
||||
|
Loading…
Reference in New Issue
Block a user