소스 검색

Apply suggestions from code review

crobibero 4 년 전
부모
커밋
de4cfa2234
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
  2. 1 1
      Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs

+ 1 - 1
Emby.Server.Implementations/HttpServer/WebSocketConnection.cs

@@ -209,7 +209,7 @@ namespace Emby.Server.Implementations.HttpServer
                 return;
                 return;
             }
             }
 
 
-            if (stub is null)
+            if (stub == null)
             {
             {
                 _logger.LogError("Error processing web socket message");
                 _logger.LogError("Error processing web socket message");
                 return;
                 return;

+ 1 - 1
Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs

@@ -75,7 +75,7 @@ namespace Jellyfin.Server.Migrations.Routines
                 foreach (var entry in queryResult)
                 foreach (var entry in queryResult)
                 {
                 {
                     UserMockup? mockup = JsonSerializer.Deserialize<UserMockup>(entry[2].ToBlob(), JsonDefaults.GetOptions());
                     UserMockup? mockup = JsonSerializer.Deserialize<UserMockup>(entry[2].ToBlob(), JsonDefaults.GetOptions());
-                    if (mockup is null)
+                    if (mockup == null)
                     {
                     {
                         continue;
                         continue;
                     }
                     }