Apply suggestions from code review

This commit is contained in:
crobibero 2020-08-26 08:45:59 -06:00
parent 78ae86b86a
commit de4cfa2234
2 changed files with 2 additions and 2 deletions

View File

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

View File

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