aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Providers/DirectoryService.cs
diff options
context:
space:
mode:
authorMikal S <7761729+revam@users.noreply.github.com>2024-06-15 18:00:53 +0200
committerGitHub <noreply@github.com>2024-06-15 18:00:53 +0200
commit9b7da736ed1363f01528d7dfd1b7daa15039fa94 (patch)
treebcd5cdd8e648fcb19d17549259664e6ad74830aa /MediaBrowser.Controller/Providers/DirectoryService.cs
parent12ed1d642983b25b2c8f962d8a93f1faa5f9fa20 (diff)
Replace `!=` with `is not`
Co-authored-by: Bond-009 <bond.009@outlook.com>
Diffstat (limited to 'MediaBrowser.Controller/Providers/DirectoryService.cs')
-rw-r--r--MediaBrowser.Controller/Providers/DirectoryService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.cs
index 55f198ea2..474f09dc5 100644
--- a/MediaBrowser.Controller/Providers/DirectoryService.cs
+++ b/MediaBrowser.Controller/Providers/DirectoryService.cs
@@ -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)