cleanUp:check existence using basic method of set

This commit is contained in:
zzr93 2022-03-30 20:47:46 +08:00
parent 2e55595d3b
commit b54befc97d

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
}