mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-31 04:48:27 +01:00
Replace == null with is null
This commit is contained in:
@@ -32,7 +32,7 @@ namespace MediaBrowser.LocalMetadata.Images
|
||||
public IEnumerable<LocalImageInfo> GetImages(BaseItem item, IDirectoryService directoryService)
|
||||
{
|
||||
var parentPath = Path.GetDirectoryName(item.Path);
|
||||
if (parentPath == null)
|
||||
if (parentPath is null)
|
||||
{
|
||||
return Enumerable.Empty<LocalImageInfo>();
|
||||
}
|
||||
|
||||
@@ -453,7 +453,7 @@ namespace MediaBrowser.LocalMetadata.Images
|
||||
{
|
||||
var image = GetImage(files, name, prefix);
|
||||
|
||||
if (image == null)
|
||||
if (image is null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user