Skip to content

Commit

Permalink
fix: assign metas to key and value (#20126)
Browse files Browse the repository at this point in the history
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
  • Loading branch information
Shengwen YU authored Mar 14, 2024
1 parent f65d238 commit ccfc3f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/v2.0/handler/project_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func (p *projectMetadataAPI) validate(metas map[string]string) (map[string]strin
}

key, value := "", ""
for key, value = range metas { // nolint:revive
}

switch key {
case proModels.ProMetaPublic, proModels.ProMetaEnableContentTrust, proModels.ProMetaEnableContentTrustCosign,
Expand Down

0 comments on commit ccfc3f8

Please sign in to comment.