Skip to content

Commit

Permalink
Fix project metadata validate bug
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Jiao <yang.jiao@broadcom.com>
  • Loading branch information
Yang Jiao committed Dec 20, 2023
1 parent 991b2a8 commit 1cf92f5
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
}

Check warning on line 142 in src/server/v2.0/handler/project_metadata.go

View check run for this annotation

Codecov / codecov/patch

src/server/v2.0/handler/project_metadata.go#L141-L142

Added lines #L141 - L142 were not covered by tests

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

0 comments on commit 1cf92f5

Please sign in to comment.