mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
Removed redundant Collection Initializers
Removed Using directives that are not required
This commit is contained in:
@@ -951,8 +951,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
: new[] { user.Configuration.AudioLanguagePreference };
|
||||
|
||||
var preferredSubs = string.IsNullOrEmpty(user.Configuration.SubtitleLanguagePreference)
|
||||
? new List<string> { }
|
||||
: new List<string> { user.Configuration.SubtitleLanguagePreference };
|
||||
? new List<string>() : new List<string> { user.Configuration.SubtitleLanguagePreference };
|
||||
|
||||
foreach (var source in mediaSources)
|
||||
{
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||
UserId = request.UserId,
|
||||
UnwatchedOnly = request.UnwatchedOnly,
|
||||
ItemLimit = request.ItemLimit,
|
||||
RequestedItemIds = request.ItemIds ?? new List<string> { },
|
||||
RequestedItemIds = request.ItemIds ?? new List<string>(),
|
||||
DateCreated = DateTime.UtcNow,
|
||||
DateLastModified = DateTime.UtcNow,
|
||||
SyncNewContent = request.SyncNewContent,
|
||||
|
||||
Reference in New Issue
Block a user