mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Replace == null with is null
This commit is contained in:
@@ -51,7 +51,7 @@ namespace MediaBrowser.LocalMetadata
|
||||
|
||||
var file = GetXmlFile(info, directoryService);
|
||||
|
||||
if (file == null)
|
||||
if (file is null)
|
||||
{
|
||||
return Task.FromResult(result);
|
||||
}
|
||||
@@ -98,7 +98,7 @@ namespace MediaBrowser.LocalMetadata
|
||||
{
|
||||
var file = GetXmlFile(new ItemInfo(item), directoryService);
|
||||
|
||||
if (file == null)
|
||||
if (file is null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -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