Skip to content

Commit 08546da

Browse files
committed
Rewmove now variable definition so that it can be re-used once more.
1 parent 8e17d6e commit 08546da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseAdmin/FirebaseAdmin/Auth/HttpPublicKeySource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ public async Task<IReadOnlyList<PublicKey>> GetPublicKeysAsync(
7272

7373
try
7474
{
75+
var now = _clock.UtcNow;
7576
if (_cachedKeys == null || _clock.UtcNow >= _expirationTime)
7677
{
7778
using (var httpClient = _clientFactory.CreateDefaultHttpClient())
7879
{
79-
var now = _clock.UtcNow;
8080
var response = await httpClient.GetAsync(_certUrl, cancellationToken)
8181
.ConfigureAwait(false);
8282
response.EnsureSuccessStatusCode();

0 commit comments

Comments
 (0)