mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Fix SA1614 and SA1116
This commit is contained in:
parent
30152c8d96
commit
3bc9f38833
1 changed files with 5 additions and 3 deletions
|
@ -42,7 +42,7 @@ namespace Jellyfin.Server.Infrastructure
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="SymlinkFollowingPhysicalFileResultExecutor"/> class.
|
/// Initializes a new instance of the <see cref="SymlinkFollowingPhysicalFileResultExecutor"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="loggerFactory"></param>
|
/// <param name="loggerFactory">An instance of the <see cref="ILoggerFactory"/> interface.</param>
|
||||||
public SymlinkFollowingPhysicalFileResultExecutor(ILoggerFactory loggerFactory) : base(loggerFactory)
|
public SymlinkFollowingPhysicalFileResultExecutor(ILoggerFactory loggerFactory) : base(loggerFactory)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -95,13 +95,15 @@ namespace Jellyfin.Server.Infrastructure
|
||||||
|
|
||||||
if (range != null)
|
if (range != null)
|
||||||
{
|
{
|
||||||
return SendFileAsync(result.FileName,
|
return SendFileAsync(
|
||||||
|
result.FileName,
|
||||||
response,
|
response,
|
||||||
offset: range.From ?? 0L,
|
offset: range.From ?? 0L,
|
||||||
count: rangeLength);
|
count: rangeLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
return SendFileAsync(result.FileName,
|
return SendFileAsync(
|
||||||
|
result.FileName,
|
||||||
response,
|
response,
|
||||||
offset: 0,
|
offset: 0,
|
||||||
count: null);
|
count: null);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue