mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-15 10:43:30 +01:00
Replace != null with is not null
This commit is contained in:
@@ -34,7 +34,7 @@ namespace MediaBrowser.MediaEncoding.BdInfo
|
||||
get
|
||||
{
|
||||
var parentFolder = System.IO.Path.GetDirectoryName(_impl.FullName);
|
||||
if (parentFolder != null)
|
||||
if (parentFolder is not null)
|
||||
{
|
||||
return new BdInfoDirectoryInfo(_fileSystem, parentFolder);
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace MediaBrowser.MediaEncoding.BdInfo
|
||||
|
||||
outputStream.PlaylistName = playlist.Name;
|
||||
|
||||
if (playlist.StreamClips != null && playlist.StreamClips.Any())
|
||||
if (playlist.StreamClips is not null && playlist.StreamClips.Any())
|
||||
{
|
||||
// Get the files in the playlist
|
||||
outputStream.Files = playlist.StreamClips.Select(i => i.StreamFile.Name).ToArray();
|
||||
|
||||
Reference in New Issue
Block a user