aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2021-09-11 12:47:01 +0200
committercvium <clausvium@gmail.com>2021-09-11 12:47:01 +0200
commit3bc9f388339bd1266a6a31e93dac81817da1b312 (patch)
tree17c764135766a253a3ac06a77974cbe3e8ab22d2
parent30152c8d967500f867feed521ed9f6539f8b0712 (diff)
Fix SA1614 and SA1116
-rw-r--r--Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs b/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs
index c64b8074b..401b3bb84 100644
--- a/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs
+++ b/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs
@@ -42,7 +42,7 @@ namespace Jellyfin.Server.Infrastructure
/// <summary>
/// Initializes a new instance of the <see cref="SymlinkFollowingPhysicalFileResultExecutor"/> class.
/// </summary>
- /// <param name="loggerFactory"></param>
+ /// <param name="loggerFactory">An instance of the <see cref="ILoggerFactory"/> interface.</param>
public SymlinkFollowingPhysicalFileResultExecutor(ILoggerFactory loggerFactory) : base(loggerFactory)
{
}
@@ -95,13 +95,15 @@ namespace Jellyfin.Server.Infrastructure
if (range != null)
{
- return SendFileAsync(result.FileName,
+ return SendFileAsync(
+ result.FileName,
response,
offset: range.From ?? 0L,
count: rangeLength);
}
- return SendFileAsync(result.FileName,
+ return SendFileAsync(
+ result.FileName,
response,
offset: 0,
count: null);