Skip to content

Commit

Permalink
perf(invokeazurerequest): ⚡ removed string concatenation (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: Jan-Henrik Damaschke <jdamaschke@visorian.com>
  • Loading branch information
prubis and itpropro authored Dec 21, 2023
1 parent 7347b2d commit a03baec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/private/Invoke-AzureRequest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ function Invoke-AzureRequest {
$uri
)
$reply = Invoke-RetryRequest -Method Get -Uri $uri
$content = $reply.value
$reply.value
while (-not [String]::IsNullOrEmpty($reply.'@odata.nextLink')) {
Write-Verbose "Found next link: $($reply.'@odata.nextLink')"
$reply = Invoke-RetryRequest -Method Get -Uri $reply.'@odata.nextLink'
foreach ($value in $reply.value) {
$content += $value
$value
}
}
return $content
Expand Down

0 comments on commit a03baec

Please sign in to comment.