diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2022-09-09 13:27:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-09 13:27:52 +0200 |
| commit | 1cbf5431aa74274627082cb02349a3241cd8801b (patch) | |
| tree | 37879e5acc95a72082d162addb1789165bf4cd36 /Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs | |
| parent | c12cab6844c5253240b725e3de634fb505a23d1b (diff) | |
| parent | 5036afd69127cc6f6b0801329b2b04f21aee71f5 (diff) | |
Merge pull request #8250 from Bond-009/minor18
Minor cleanup
Diffstat (limited to 'Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs')
| -rw-r--r-- | Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs b/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs index 7e7e4ca95..28ed3894f 100644 --- a/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs +++ b/Jellyfin.Server/Infrastructure/SymlinkFollowingPhysicalFileResultExecutor.cs @@ -69,15 +69,8 @@ namespace Jellyfin.Server.Infrastructure /// <inheritdoc /> protected override Task WriteFileAsync(ActionContext context, PhysicalFileResult result, RangeItemHeaderValue? range, long rangeLength) { - if (context == null) - { - throw new ArgumentNullException(nameof(context)); - } - - if (result == null) - { - throw new ArgumentNullException(nameof(result)); - } + ArgumentNullException.ThrowIfNull(context, nameof(context)); + ArgumentNullException.ThrowIfNull(result, nameof(result)); if (range != null && rangeLength == 0) { |
