Skip to content

Commit

Permalink
Fix project metadata validate bug (#19746)
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>
Co-authored-by: Yang Jiao <yang.jiao@broadcom.com>
  • Loading branch information
YangJiao0817 and Yang Jiao authored Dec 20, 2023
1 parent 2f2a646 commit 6793da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/v2.0/handler/project_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6793da7

Please sign in to comment.