From 9b7da736ed1363f01528d7dfd1b7daa15039fa94 Mon Sep 17 00:00:00 2001 From: Mikal S <7761729+revam@users.noreply.github.com> Date: Sat, 15 Jun 2024 18:00:53 +0200 Subject: [PATCH] Replace `!=` with `is not` Co-authored-by: Bond-009 --- MediaBrowser.Controller/Providers/DirectoryService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Controller/Providers/DirectoryService.cs b/MediaBrowser.Controller/Providers/DirectoryService.cs index 55f198ea21..474f09dc5e 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)