Merge pull request #109150 from zzr93/master

cleanUp:check existence using basic method of set
This commit is contained in:
Kubernetes Prow Robot
2022-05-03 18:25:00 -07:00
committed by GitHub

View File

@@ -295,7 +295,7 @@ func NewFramework(r Registry, profile *config.KubeSchedulerProfile, opts ...Opti
pluginsMap := make(map[string]framework.Plugin)
for name, factory := range r {
// initialize only needed plugins.
if _, ok := pg[name]; !ok {
if !pg.Has(name) {
continue
}