Fix debug builds (#8909)

This commit is contained in:
Bond-009 2022-12-14 22:03:03 +01:00 committed by GitHub
parent 39289ae814
commit 3462676a8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 10 deletions

View File

@ -1301,7 +1301,8 @@ namespace Jellyfin.Networking.Manager
var extResult = _interfaceAddresses
.Exclude(_bindExclusions, false)
.Where(p => !IsInLocalNetwork(p))
.OrderBy(p => p.Tag);
.OrderBy(p => p.Tag)
.ToList();
if (extResult.Any())
{

View File

@ -57,7 +57,7 @@ namespace Jellyfin.Extensions.Tests.Json.Converters
Assert.Equal(json, res);
}
private class TestContainer
private sealed class TestContainer
{
public TestContainer(CollectionTypeOptions? collectionType)
{

View File

@ -32,7 +32,7 @@ namespace Jellyfin.MediaEncoding.Tests
Assert.Equal(valid, _encoderValidator.ValidateVersionInternal(versionOutput));
}
private class GetFFmpegVersionTestData : TheoryData<string, Version?>
private sealed class GetFFmpegVersionTestData : TheoryData<string, Version?>
{
public GetFFmpegVersionTestData()
{

View File

@ -186,7 +186,7 @@ namespace Jellyfin.Model.Tests.Entities
Assert.Null(nullProvider.ProviderIds);
}
private class ProviderIdsExtensionsTestsObject : IHasProviderIds
private sealed class ProviderIdsExtensionsTestsObject : IHasProviderIds
{
public static readonly ProviderIdsExtensionsTestsObject Empty = new ProviderIdsExtensionsTestsObject();

View File

@ -282,7 +282,7 @@ namespace Jellyfin.Server.Implementations.Tests.Data
Assert.Equal(expected, SqliteItemRepository.SerializeProviderIds(values));
}
private class ProviderIdsExtensionsTestsObject : IHasProviderIds
private sealed class ProviderIdsExtensionsTestsObject : IHasProviderIds
{
public Dictionary<string, string> ProviderIds { get; set; } = new Dictionary<string, string>();
}

View File

@ -48,7 +48,7 @@ namespace Jellyfin.Server.Implementations.Tests.HttpServer
Assert.Throws<JsonException>(() => con.DeserializeWebSocketMessage(new ReadOnlySequence<byte>(bytes), out var bytesConsumed));
}
internal class BufferSegment : ReadOnlySequenceSegment<byte>
internal sealed class BufferSegment : ReadOnlySequenceSegment<byte>
{
public BufferSegment(Memory<byte> memory)
{

View File

@ -60,7 +60,7 @@ namespace Jellyfin.Server.Implementations.Tests.Library
Assert.NotNull(episodeResolver.Resolve(itemResolveArgs));
}
private class EpisodeResolverMock : EpisodeResolver
private sealed class EpisodeResolverMock : EpisodeResolver
{
public EpisodeResolverMock(ILogger<EpisodeResolver> logger, NamingOptions namingOptions) : base(logger, namingOptions)
{

View File

@ -27,7 +27,7 @@ namespace Jellyfin.Server.Implementations.Tests.Sorting
Assert.Equal(-expected, cmp.Compare(y, x));
}
private class EpisodeBadData : TheoryData<BaseItem?, BaseItem?>
private sealed class EpisodeBadData : TheoryData<BaseItem?, BaseItem?>
{
public EpisodeBadData()
{
@ -36,7 +36,7 @@ namespace Jellyfin.Server.Implementations.Tests.Sorting
}
}
private class EpisodeTestData : TheoryData<BaseItem, BaseItem, int>
private sealed class EpisodeTestData : TheoryData<BaseItem, BaseItem, int>
{
public EpisodeTestData()
{

View File

@ -48,7 +48,7 @@ namespace Jellyfin.Server.Integration.Tests
headers.Add(AuthHeaderName, DummyAuthHeader + $", Token={accessToken}");
}
private class AuthenticationResultDto
private sealed class AuthenticationResultDto
{
public string AccessToken { get; set; } = string.Empty;