Skip to content

Commit 094f282

Browse files
committed
Fix build error CA1852
1 parent 0a77f30 commit 094f282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/Elastic.Documentation.Api.Infrastructure/Gcp/GcpIdTokenProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class GcpIdTokenProvider(HttpClient httpClient)
1717
// Cache tokens by target audience to avoid regenerating them on every request
1818
private static readonly ConcurrentDictionary<string, CachedToken> TokenCache = new();
1919

20-
private record CachedToken(string Token, DateTimeOffset ExpiresAt);
20+
private sealed record CachedToken(string Token, DateTimeOffset ExpiresAt);
2121

2222
public async Task<string> GenerateIdTokenAsync(string serviceAccount, string targetAudience, Cancel cancellationToken = default)
2323
{

0 commit comments

Comments
 (0)