Merge pull request #12079 from ninjadq/chartrepo_enumeration_master

Fix: chart repo response code inconsistent
This commit is contained in:
Steven Zou 2020-06-11 15:08:14 +08:00 committed by GitHub
commit 64f03cc7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,7 +442,7 @@ func (cra *ChartRepositoryAPI) requireNamespace(namespace string) bool {
// Not existing
if !existing {
cra.SendBadRequestError(fmt.Errorf("namespace %s is not existing", namespace))
cra.handleProjectNotFound(namespace)
return false
}