Skip to content

Commit f669433

Browse files
authored
Update TicketCacheBase.cs
1 parent 28d4b93 commit f669433

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Kerberos.NET/Cache/TicketCacheBase.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,7 @@ protected virtual async Task BackgroundCacheOperation()
158158

159159
if (cacheEntry != null && !cacheEntry.IsExpired(this.Configuration.Defaults.ClockSkew))
160160
{
161-
if (this.Refresh != null)
162-
{
163-
await this.Refresh.Invoke(cacheEntry).ConfigureAwait(false);
164-
}
161+
await (this.Refresh?.Invoke(cacheEntry))?.ConfigureAwait(false);
165162
}
166163
}
167164

0 commit comments

Comments
 (0)