mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-03 03:38:15 +00:00
Use len() instead of telling whether it's nil Add tests to guarantee that when resourceToWeightMap is nil, scheduler will not crash Signed-off-by: kerthcet <kerthcet@gmail.com>