mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-27 12:34:56 +01:00
Use pattern matching for null checks (#13793)
Fix the few that slipped through
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user