mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 15:48:03 +00:00
Replace != null with is not null
This commit is contained in:
@@ -94,7 +94,7 @@ namespace MediaBrowser.LocalMetadata.Images
|
||||
{
|
||||
var season = item as Season;
|
||||
var series = season?.Series;
|
||||
if (series != null && series.IsFileProtocol)
|
||||
if (series is not null && series.IsFileProtocol)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -334,7 +334,7 @@ namespace MediaBrowser.LocalMetadata.Images
|
||||
var extraFanartFolder = files
|
||||
.FirstOrDefault(i => string.Equals(i.Name, "extrafanart", StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (extraFanartFolder != null)
|
||||
if (extraFanartFolder is not null)
|
||||
{
|
||||
PopulateBackdropsFromExtraFanart(extraFanartFolder.FullName, images);
|
||||
}
|
||||
|
||||
@@ -721,7 +721,7 @@ namespace MediaBrowser.LocalMetadata.Parsers
|
||||
{
|
||||
var child = GetShare(subReader);
|
||||
|
||||
if (child != null)
|
||||
if (child is not null)
|
||||
{
|
||||
list.Add(child);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace MediaBrowser.LocalMetadata.Parsers
|
||||
{
|
||||
var child = GetLinkedChild(subReader);
|
||||
|
||||
if (child != null)
|
||||
if (child is not null)
|
||||
{
|
||||
list.Add(child);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace MediaBrowser.LocalMetadata.Parsers
|
||||
{
|
||||
var child = GetLinkedChild(subReader);
|
||||
|
||||
if (child != null)
|
||||
if (child is not null)
|
||||
{
|
||||
list.Add(child);
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace MediaBrowser.LocalMetadata.Savers
|
||||
|
||||
var baseItem = item;
|
||||
|
||||
if (baseItem != null)
|
||||
if (baseItem is not null)
|
||||
{
|
||||
await AddCommonNodesAsync(baseItem, writer).ConfigureAwait(false);
|
||||
}
|
||||
@@ -309,7 +309,7 @@ namespace MediaBrowser.LocalMetadata.Savers
|
||||
await writer.WriteElementStringAsync(null, "RunningTime", null, Math.Floor(timespan.TotalMinutes).ToString(CultureInfo.InvariantCulture)).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (item.ProviderIds != null)
|
||||
if (item.ProviderIds is not null)
|
||||
{
|
||||
foreach (var providerKey in item.ProviderIds.Keys)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user