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:
Yang Jiao 2023-12-20 15:28:07 +08:00 committed by GitHub
parent 2f2a6462ad
commit 6793da72e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,