diff options
| author | Mikal S <7761729+revam@users.noreply.github.com> | 2024-06-15 18:00:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-15 18:00:53 +0200 |
| commit | 9b7da736ed1363f01528d7dfd1b7daa15039fa94 (patch) | |
| tree | bcd5cdd8e648fcb19d17549259664e6ad74830aa | |
| parent | 12ed1d642983b25b2c8f962d8a93f1faa5f9fa20 (diff) | |
Replace `!=` with `is not`
Co-authored-by: Bond-009 <bond.009@outlook.com>
| -rw-r--r-- | MediaBrowser.Controller/Providers/DirectoryService.cs | 4 |
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) |
