Replace != with is not

Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
Mikal S 2024-06-15 18:00:53 +02:00 committed by GitHub
parent 12ed1d6429
commit 9b7da736ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,13 +63,13 @@ namespace MediaBrowser.Controller.Providers
public FileSystemMetadata? GetFile(string path)
{
var entry = GetFileSystemEntry(path);
return entry != null && !entry.IsDirectory ? entry : null;
return entry is not null && !entry.IsDirectory ? entry : null;
}
public FileSystemMetadata? GetDirectory(string path)
{
var entry = GetFileSystemEntry(path);
return entry != null && entry.IsDirectory ? entry : null;
return entry is not null && entry.IsDirectory ? entry : null;
}
public FileSystemMetadata? GetFileSystemEntry(string path)