Skip to content

Commit

Permalink
remove chart-museum related to logic
Browse files Browse the repository at this point in the history
Signed-off-by: lengrongfu <[email protected]>
  • Loading branch information
lengrongfu committed May 29, 2023
1 parent 4f3393e commit 47e15a2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/server/v2.0/handler/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"github.com/go-openapi/runtime/middleware"

"github.com/goharbor/harbor/src/common"
"github.com/goharbor/harbor/src/common/dao"
"github.com/goharbor/harbor/src/common/rbac"
"github.com/goharbor/harbor/src/common/rbac/system"
"github.com/goharbor/harbor/src/controller/project"
Expand Down Expand Up @@ -181,10 +180,6 @@ func (lAPI *labelAPI) DeleteLabel(ctx context.Context, params operation.DeleteLa
return lAPI.SendError(ctx, err)
}
id := label.ID
// TODO remove this step once chart-museum is removed.
if err := dao.DeleteResourceLabelByLabel(id); err != nil {
return lAPI.SendError(ctx, err)
}
if err := lAPI.labelMgr.RemoveFromAllArtifacts(ctx, id); err != nil {
return lAPI.SendError(ctx, err)
}
Expand Down

0 comments on commit 47e15a2

Please sign in to comment.