dra scheduler: reformat code
By continuing with the next item in the if clause, the else is no longer needed and indention can be reduced.
This commit is contained in:
@@ -911,7 +911,9 @@ func (pl *dynamicResources) Reserve(ctx context.Context, cs *framework.CycleStat
|
|||||||
// updating the ResourceClaim status, we assume that reserving
|
// updating the ResourceClaim status, we assume that reserving
|
||||||
// will work and only do it for real during binding. If it fails at
|
// will work and only do it for real during binding. If it fails at
|
||||||
// that time, some other pod was faster and we have to try again.
|
// that time, some other pod was faster and we have to try again.
|
||||||
} else {
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
// Must be delayed allocation.
|
// Must be delayed allocation.
|
||||||
numDelayedAllocationPending++
|
numDelayedAllocationPending++
|
||||||
|
|
||||||
@@ -921,7 +923,6 @@ func (pl *dynamicResources) Reserve(ctx context.Context, cs *framework.CycleStat
|
|||||||
numClaimsWithStatusInfo++
|
numClaimsWithStatusInfo++
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if numDelayedAllocationPending == 0 {
|
if numDelayedAllocationPending == 0 {
|
||||||
// Nothing left to do.
|
// Nothing left to do.
|
||||||
|
Reference in New Issue
Block a user