mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-14 20:10:50 -04:00
Merge pull request #138522 from bart0sh/PR232-DRA-remove-nil-check
scheduler/dra: remove redundant nil check
This commit is contained in:
commit
caeae2cfa0
1 changed files with 0 additions and 3 deletions
|
|
@ -171,9 +171,6 @@ func (pl *DynamicResources) buildNodeAllocatableDRAInfo(pod *v1.Pod, nodeAllocat
|
|||
quantity = resourceMap.AllocationMultiplier.DeepCopy()
|
||||
}
|
||||
|
||||
if currentClaimStatus.Resources == nil {
|
||||
currentClaimStatus.Resources = make(map[v1.ResourceName]resource.Quantity)
|
||||
}
|
||||
curQuantity, ok := currentClaimStatus.Resources[resourceName]
|
||||
if !ok {
|
||||
currentClaimStatus.Resources[resourceName] = quantity
|
||||
|
|
|
|||
Loading…
Reference in a new issue