The Free Software Media System - Server Backend & API
Apply suggestions from code review
crobiberode4cfa223498
diff --git a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs b/Emby.Server.Implementations/HttpServer/WebSocketConnection.csindex dedc8978bc..7eae4e7646 100644--- a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs+++ b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs@@ -209,7 +209,7 @@ namespace Emby.Server.Implementations.HttpServerreturn;}- if (stub is null)+ if (stub == null){_logger.LogError("Error processing web socket message");return;diff --git a/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs b/Jellyfin.Server/Migrations/Routines/MigrateUserDb.csindex 6cd6d1f820..ac6890f386 100644--- a/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs+++ b/Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs@@ -75,7 +75,7 @@ namespace Jellyfin.Server.Migrations.Routinesforeach (var entry in queryResult){UserMockup? mockup = JsonSerializer.Deserialize<UserMockup>(entry[2].ToBlob(), JsonDefaults.GetOptions());- if (mockup is null)+ if (mockup == null){continue;}