Skip to content
Merged
Prev Previous commit
Next Next commit
Code cleanup
  • Loading branch information
aavasthy committed Aug 25, 2025
commit 4f5a0175f2dc9b8fc49f2494e459dbe7b8a7643c
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ private async Task<AccessToken> GetNewTokenAsync(
private async ValueTask<AccessToken> RefreshCachedTokenWithRetryHelperAsync(
ITrace trace)
{
Exception? lastException = null;
const int totalRetryCount = 2;
TokenRequestContext tokenRequestContext = default;

try
{
Exception? lastException = null;
const int totalRetryCount = 2;
TokenRequestContext tokenRequestContext = default;

for (int retry = 0; retry < totalRetryCount; retry++)
{
if (this.cancellationToken.IsCancellationRequested)
Expand Down
Loading