From f97c5bed474b4c96deec04effbcef315c1a08ccd Mon Sep 17 00:00:00 2001 From: Binary Alley Date: Wed, 14 Oct 2026 13:40:44 +0300 Subject: [PATCH] Removes redundant qualifiers and a cast from the track stream endpoint Drops the redundant FastEndpoints namespace qualification of EmptyRequest and the redundant cast of the audio byte array length in the stream endpoint and its tests. --- .../Tracks/GetTrackStream/GetTrackStreamEndpoint.cs | 4 ++-- .../Tracks/GetTrackStream/GetTrackStreamEndpointTests.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Lumina.Presentation.Api/Core/Endpoints/Library/AudioLibrary/MusicLibrary/Tracks/GetTrackStream/GetTrackStreamEndpoint.cs b/src/Lumina.Presentation.Api/Core/Endpoints/Library/AudioLibrary/MusicLibrary/Tracks/GetTrackStream/GetTrackStreamEndpoint.cs index 89971766..5e930410 100644 --- a/src/Lumina.Presentation.Api/Core/Endpoints/Library/AudioLibrary/MusicLibrary/Tracks/GetTrackStream/GetTrackStreamEndpoint.cs +++ b/src/Lumina.Presentation.Api/Core/Endpoints/Library/AudioLibrary/MusicLibrary/Tracks/GetTrackStream/GetTrackStreamEndpoint.cs @@ -21,7 +21,7 @@ namespace Lumina.Presentation.Api.Core.Endpoints.Library.AudioLibrary.MusicLibra /// /// API endpoint for the /libraries/{libraryId}/artists/{artistId}/albums/{albumId}/tracks/{trackId}/stream route. /// -public class GetTrackStreamEndpoint : BaseEndpoint +public class GetTrackStreamEndpoint : BaseEndpoint { private readonly IQueryHandler> _getTrackStreamQueryHandler; @@ -55,7 +55,7 @@ public class GetTrackStreamEndpoint : BaseEndpoint /// The request object. /// Cancellation token that can be used to stop the execution. - public override async Task ExecuteAsync(FastEndpoints.EmptyRequest request, CancellationToken cancellationToken) + public override async Task ExecuteAsync(EmptyRequest request, CancellationToken cancellationToken) { // Take unique identifiers from the route. string? libraryId = HttpContext.Request.RouteValues["libraryId"]?.ToString(); diff --git a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Library/AudioLibrary/MusicLibrary/Tracks/GetTrackStream/GetTrackStreamEndpointTests.cs b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Library/AudioLibrary/MusicLibrary/Tracks/GetTrackStream/GetTrackStreamEndpointTests.cs index 94c3dfea..272bf56a 100644 --- a/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Library/AudioLibrary/MusicLibrary/Tracks/GetTrackStream/GetTrackStreamEndpointTests.cs +++ b/tests/IntegrationTests/Lumina.Presentation.Api.IntegrationTests/Core/Endpoints/Library/AudioLibrary/MusicLibrary/Tracks/GetTrackStream/GetTrackStreamEndpointTests.cs @@ -80,7 +80,7 @@ public class GetTrackStreamEndpointTests : IClassFixture