fix bugs reported by sonarqube

Signed-off-by: Roland.Ma <rolandma@kubesphere.io>
This commit is contained in:
Roland.Ma
2021-11-01 09:01:49 +00:00
parent eee3b7d1a3
commit d1adef00f6
4 changed files with 5 additions and 24 deletions

View File

@@ -78,9 +78,5 @@ func (g *ingressGetter) filter(object runtime.Object, filter query.Filter) bool
if !ok {
return false
}
switch filter.Field {
default:
return v1alpha3.DefaultObjectMetaFilter(deployment.ObjectMeta, filter)
}
return v1alpha3.DefaultObjectMetaFilter(deployment.ObjectMeta, filter)
}