mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-24 19:16:32 +00:00
Fix SA1513, SA1514, SA1507, and SA1508
This commit is contained in:
@@ -2263,7 +2263,6 @@ namespace Emby.Server.Implementations.Data
|
||||
return query.IncludeItemTypes.Contains("Trailer", StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
|
||||
private static readonly HashSet<string> _artistExcludeParentTypes = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
"Series",
|
||||
@@ -3291,7 +3290,6 @@ namespace Emby.Server.Implementations.Data
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var isReturningZeroItems = query.Limit.HasValue && query.Limit <= 0;
|
||||
|
||||
var statementTexts = new List<string>();
|
||||
@@ -6006,7 +6004,6 @@ where AncestorIdText not null and ItemValues.Value not null and ItemValues.Type
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the chapter.
|
||||
/// </summary>
|
||||
|
||||
@@ -468,7 +468,6 @@ namespace Emby.Server.Implementations.Dto
|
||||
IncludeItemTypes = new[] { typeof(MusicAlbum).Name },
|
||||
Name = item.Album,
|
||||
Limit = 1
|
||||
|
||||
});
|
||||
|
||||
if (parentAlbumIds.Count > 0)
|
||||
|
||||
@@ -28,7 +28,6 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||
private readonly object _syncLock = new object();
|
||||
private Timer _updateTimer;
|
||||
|
||||
|
||||
public UserDataChangeNotifier(IUserDataManager userDataManager, ISessionManager sessionManager, IUserManager userManager)
|
||||
{
|
||||
_userDataManager = userDataManager;
|
||||
|
||||
@@ -874,7 +874,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
||||
public List<Lineup> lineups { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class Headends
|
||||
{
|
||||
public string headend { get; set; }
|
||||
@@ -886,8 +885,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
||||
public List<Lineup> lineups { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class Map
|
||||
{
|
||||
public string stationID { get; set; }
|
||||
@@ -971,9 +968,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
||||
public List<string> date { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public class Rating
|
||||
{
|
||||
public string body { get; set; }
|
||||
@@ -1017,8 +1011,6 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
||||
public string isPremiereOrFinale { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class MetadataSchedule
|
||||
{
|
||||
public string modified { get; set; }
|
||||
|
||||
@@ -2135,6 +2135,7 @@ namespace Emby.Server.Implementations.LiveTv
|
||||
}
|
||||
|
||||
private bool _disposed = false;
|
||||
|
||||
/// <summary>
|
||||
/// Releases unmanaged and - optionally - managed resources.
|
||||
/// </summary>
|
||||
|
||||
@@ -393,6 +393,7 @@ namespace Emby.Server.Implementations.Updates
|
||||
// Ignore any exceptions.
|
||||
}
|
||||
}
|
||||
|
||||
stream.Position = 0;
|
||||
_zipClient.ExtractAllFromZip(stream, targetDir, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user