Minor #if fixes

This commit is contained in:
Nanook
2026-02-21 01:49:16 +00:00
parent d5dbaea89a
commit a0708ecf01
3 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ internal sealed partial class TarHeader
int splitIndex = -1;
for (int i = 0; i < dirSeps.Count; i++)
{
#if NET6_0_OR_GREATER
#if NET5_0_OR_GREATER
int count = ArchiveEncoding
.GetEncoding()
.GetByteCount(fullName.AsSpan(0, dirSeps[i]));

View File

@@ -89,7 +89,7 @@ internal sealed partial class TarHeader
int splitIndex = -1;
for (int i = 0; i < dirSeps.Count; i++)
{
#if NET6_0_OR_GREATER
#if NET5_0_OR_GREATER
int count = ArchiveEncoding
.GetEncoding()
.GetByteCount(fullName.AsSpan(0, dirSeps[i]));

View File

@@ -28,7 +28,7 @@ public static class StreamExtensions
public Task SkipAsync(CancellationToken cancellationToken = default)
{
cancellationToken.ThrowIfCancellationRequested();
#if NET6_0_OR_GREATER
#if NET5_0_OR_GREATER
return stream.CopyToAsync(Stream.Null, cancellationToken);
#else
return stream.CopyToAsync(Stream.Null);