Remove unnecessary null checks in some places

Related to https://github.com/jellyfin/jellyfin/issues/2149
This commit is contained in:
KonH
2020-10-03 22:03:23 +07:00
parent c0be770681
commit 211c9cd608
3 changed files with 3 additions and 6 deletions

View File

@@ -554,7 +554,7 @@ namespace Jellyfin.Api.Helpers
private long? GetMaxBitrate(long? clientMaxBitrate, User user, string ipAddress)
{
var maxBitrate = clientMaxBitrate;
var remoteClientMaxBitrate = user?.RemoteClientBitrateLimit ?? 0;
var remoteClientMaxBitrate = user.RemoteClientBitrateLimit ?? 0;
if (remoteClientMaxBitrate <= 0)
{