mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-17 19:54:47 +01:00
== null -> is null
This commit is contained in:
@@ -1864,7 +1864,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// <exception cref="ArgumentException">Backdrops should be accessed using Item.Backdrops.</exception>
|
||||
public bool HasImage(ImageType type, int imageIndex)
|
||||
{
|
||||
return GetImageInfo(type, imageIndex) != null;
|
||||
return GetImageInfo(type, imageIndex) is not null;
|
||||
}
|
||||
|
||||
public void SetImage(ItemImageInfo image, int index)
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace MediaBrowser.Controller.Entities.TV
|
||||
}
|
||||
|
||||
[JsonIgnore]
|
||||
public bool IsInSeasonFolder => FindParent<Season>() != null;
|
||||
public bool IsInSeasonFolder => FindParent<Season>() is not null;
|
||||
|
||||
[JsonIgnore]
|
||||
public string SeriesPresentationUniqueKey { get; set; }
|
||||
|
||||
@@ -333,7 +333,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
protected override bool IsActiveRecording()
|
||||
{
|
||||
return LiveTvManager.GetActiveRecordingInfo(Path) != null;
|
||||
return LiveTvManager.GetActiveRecordingInfo(Path) is not null;
|
||||
}
|
||||
|
||||
public override bool CanDelete()
|
||||
|
||||
Reference in New Issue
Block a user