We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75c89ba commit f05c006Copy full SHA for f05c006
samples/batch/Invoke-BatchWithRetry.ps1
@@ -8,7 +8,7 @@ function Invoke-BatchWithRetry {
8
$pending = @($BatchRequests) # Ensure it's an array
9
$retryCount = 0
10
11
- while ($pending -ne $null -and $pending.Count -gt 0 -and $retryCount -le $MaxRetries) {
+ while ($pending.Count -gt 0 -and $retryCount -le $MaxRetries) {
12
$batchBody = @{
13
requests = $pending
14
} | ConvertTo-Json -Depth 5
@@ -25,7 +25,7 @@ function Invoke-BatchWithRetry {
25
}
26
27
28
- if ($pending -ne $null -and $pending.Count -gt 0) {
+ if ($pending.Count -gt 0) {
29
Start-Sleep -Seconds 5
30
$retryCount++
31
0 commit comments