소스 검색

Replace `!=` with `is not`

Co-authored-by: Bond-009 <bond.009@outlook.com>
Mikal S 1 년 전
부모
커밋
9b7da736ed
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      MediaBrowser.Controller/Providers/DirectoryService.cs

+ 2 - 2
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)