Use pattern matching for null checks (#13793)

Fix the few that slipped through
This commit is contained in:
Bond-009
2025-04-01 01:38:25 +02:00
committed by GitHub
parent 3fc3b04daf
commit e9729a536f
8 changed files with 12 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ namespace MediaBrowser.Providers.TV
foreach (var season in seasons)
{
var hasUpdate = refreshOptions != null && season.BeforeMetadataRefresh(refreshOptions.ReplaceAllMetadata);
var hasUpdate = refreshOptions is not null && season.BeforeMetadataRefresh(refreshOptions.ReplaceAllMetadata);
if (hasUpdate)
{
await season.UpdateToRepositoryAsync(ItemUpdateType.MetadataEdit, cancellationToken).ConfigureAwait(false);