mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Remove unnecessary null checks in some places
Related to https://github.com/jellyfin/jellyfin/issues/2149
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user