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
commit 44835a8d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}