diff --git a/src/replication/adapter/harbor/chart_registry.go b/src/replication/adapter/harbor/chart_registry.go index 1f15cd196..cfc66153f 100644 --- a/src/replication/adapter/harbor/chart_registry.go +++ b/src/replication/adapter/harbor/chart_registry.go @@ -130,13 +130,6 @@ func (a *adapter) ChartExist(name, version string) (bool, error) { if httpErr, ok := err.(*common_http.Error); ok && httpErr.Code == http.StatusNotFound { return false, nil } - // TODO this is a workaround for https://github.com/goharbor/harbor/issues/7171 - if httpErr, ok := err.(*common_http.Error); ok && httpErr.Code == http.StatusInternalServerError { - if strings.Contains(httpErr.Message, "no chart name found") || - strings.Contains(httpErr.Message, "No chart version found") { - return false, nil - } - } return false, err }