From 32c01d8171cab75428d5127c41c13e4dc78906f4 Mon Sep 17 00:00:00 2001 From: Shengwen Yu Date: Thu, 14 Mar 2024 16:20:15 +0800 Subject: [PATCH] fix: assign metas to key and value Signed-off-by: Shengwen Yu --- src/server/v2.0/handler/project_metadata.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/v2.0/handler/project_metadata.go b/src/server/v2.0/handler/project_metadata.go index 0102e231199..8a2ba6cb766 100644 --- a/src/server/v2.0/handler/project_metadata.go +++ b/src/server/v2.0/handler/project_metadata.go @@ -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,